-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 948 Bytes
/
Copy patheslint.config.js
File metadata and controls
29 lines (28 loc) · 948 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
const js = require('@eslint/js');
const cypress = require('eslint-plugin-cypress');
const prettierRecommended = require('eslint-plugin-prettier/recommended');
const globals = require('globals');
module.exports = [
{ ignores: ['node_modules/', 'dragster.min.js', 'dragster.min.js.gz', 'template.es6.js'] },
js.configs.recommended,
cypress.configs.recommended,
{
languageOptions: {
ecmaVersion: 2018,
sourceType: 'module',
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
eqeqeq: ['error', 'always'],
'no-cond-assign': ['error', 'always'],
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'cypress/no-assigning-return-values': 'off',
'cypress/no-async-tests': 'off',
},
},
prettierRecommended,
];