npm i -g eslint eslint-plugin-react
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": ["react"], | |
"rules": { | |
"no-unused-vars": "off", | |
"no-undef": "off", | |
"indent": ["error", "tab"], | |
"linebreak-style": ["error", "unix"], | |
"quotes": ["error", "single"], | |
"semi": ["error", "always"], | |
"react/jsx-uses-vars": 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment