UNPKG

681 BJavaScriptView Raw
1module.exports = {
2 root: true,
3 parser: 'babel-eslint',
4 extends: [ 'standard', 'standard-react', 'prettier', 'prettier/react' ],
5 plugins: [ 'babel', 'react', 'prettier' ],
6 env: { browser: true },
7 settings: {
8 react: {
9 version: 'detect',
10 }
11 },
12 rules: {
13 semi: [ 2, 'never' ],
14 'no-console': 'error',
15 'react/jsx-no-bind': [ 2, { allowArrowFunctions: true } ],
16 'react/jsx-handler-names': 0,
17 'prettier/prettier':
18 [ 'error', {
19 singleQuote: true,
20 trailingComma: 'none',
21 semi: false,
22 bracketSpacing: true,
23 jsxBracketSameLine: false,
24 printWidth: 80,
25 tabWidth: 2,
26 useTabs: false
27 }]
28 }
29}
\No newline at end of file