Open ThoughtZer opened 3 years ago
const stylelint = require('stylelint'); const code = ` import { StyleSheet } from 'react-native'; StyleSheet.create({ foo: { COLR: 'red' } }) `; const options = { config: { rules: { 'react-native/style-property-no-unknown': true, }, plugins: ['stylelint-react-native'], }, code, syntax: 'css-in-js', }; stylelint.lint(options).then((output) => { console.log(output.results[0].warnings); // [] });
Did i do something wrong?
Did i do something wrong?