-
-
Notifications
You must be signed in to change notification settings - Fork 247
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (35 loc) · 963 Bytes
/
eslint.config.js
File metadata and controls
37 lines (35 loc) · 963 Bytes
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
29
30
31
32
33
34
35
36
37
const { defineConfig } = require('eslint/config');
const xo = require('eslint-config-xo');
const configPrettier = require('eslint-config-prettier/flat');
const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
const globals = require('globals');
module.exports = defineConfig([
{ ignores: ['app/templates', 'coverage', 'node_modules'] },
{ rules: xo.rules },
configPrettier,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
...globals.jest,
...globals.node
}
},
linterOptions: {
reportUnusedDisableDirectives: 'error'
},
rules: {
// Only supported in Node >=15; we still support >=10 for now
'logical-assignment-operators': 'off',
'prettier/prettier': [
'error',
{
arrowParens: 'avoid',
printWidth: 90,
singleQuote: true,
trailingComma: 'none'
}
]
}
}
]);