forked from andrewmaxwell/mortal-wombat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
28 lines (28 loc) · 815 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {jsx: true},
},
env: {browser: true, es6: true, node: true, 'jest/globals': true},
extends: [
'eslint:recommended',
'prettier',
'plugin:react/recommended',
'plugin:import/recommended',
'plugin:jest/recommended',
],
plugins: ['prettier', 'react', 'jest'],
rules: {
'prettier/prettier': ['warn', {singleQuote: true, bracketSpacing: false}],
'dot-notation': 'warn',
'quote-props': ['warn', 'as-needed'],
'arrow-body-style': ['warn', 'as-needed'],
'object-shorthand': 'warn',
'no-use-before-define': 'warn',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'no-unused-vars': 'warn',
},
settings: {react: {version: 'detect'}},
};