-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.js
More file actions
18 lines (18 loc) · 798 Bytes
/
.eslintrc.js
File metadata and controls
18 lines (18 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
extends: [
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
// Error
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: false }],
'comma-dangle': ['error', 'never'],
'max-lines': ['error', 500],
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'prefer-destructuring': ['error', { object: true, array: false }],
'quotes': ['error', 'single', { allowTemplateLiterals: true }]
}
};