react linting

This commit is contained in:
ntr 2018-11-21 15:07:49 +11:00
parent d699a9cfe8
commit 4d648c8fe7

View File

@ -55,12 +55,12 @@ module.exports = {
'key-spacing': ['error'], 'key-spacing': ['error'],
// for preact // for preact
"react/react-in-jsx-scope": [0], // "react/react-in-jsx-scope": [0],
"react/jsx-indent": [2, 4], // "react/jsx-indent": [2, 4],
"react/jsx-uses-react": 1, // "react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1, // "react/jsx-uses-vars": 1,
"react/prefer-stateless-function": 1, // "react/prefer-stateless-function": 1,
"react/prop-types": 0, // "react/prop-types": 0,
// airbnb copypasta // airbnb copypasta
// enforces getter/setter pairs in objects // enforces getter/setter pairs in objects