|
1 | 1 | module.exports = {
|
2 | 2 | env: {
|
3 |
| - "cypress/globals": true, |
| 3 | + 'cypress/globals': true, |
4 | 4 | browser: true,
|
5 | 5 | commonjs: true,
|
6 | 6 | es2021: true,
|
7 | 7 | },
|
8 |
| - extends: ["airbnb-base", "plugin:prettier/recommended"], |
9 |
| - ignorePatterns: ["build/", "dist/", "libs/", "node_modules/"], |
| 8 | + extends: ['airbnb-base', 'plugin:prettier/recommended'], |
| 9 | + ignorePatterns: ['build/', 'dist/', 'libs/', 'node_modules/'], |
10 | 10 | globals: {
|
11 |
| - validate: "readonly", |
12 |
| - JSZip: "readonly", |
| 11 | + validate: 'readonly', |
| 12 | + JSZip: 'readonly', |
13 | 13 | },
|
14 | 14 | overrides: [
|
15 | 15 | {
|
16 | 16 | env: {
|
17 | 17 | node: true,
|
18 | 18 | },
|
19 |
| - files: [".eslintrc.{js,cjs}"], |
| 19 | + files: ['.eslintrc.{js,cjs}'], |
20 | 20 | parserOptions: {
|
21 |
| - sourceType: "script", |
| 21 | + sourceType: 'script', |
22 | 22 | },
|
23 | 23 | },
|
24 | 24 | ],
|
25 | 25 | parserOptions: {
|
26 |
| - ecmaVersion: "latest", |
| 26 | + ecmaVersion: 'latest', |
27 | 27 | },
|
28 |
| - plugins: ["cypress", "prettier"], |
| 28 | + plugins: ['cypress', 'prettier'], |
29 | 29 | rules: {
|
30 |
| - "class-methods-use-this": 0, |
31 |
| - "func-names": 0, |
32 |
| - "import/no-extraneous-dependencies": [ |
33 |
| - "error", |
| 30 | + 'class-methods-use-this': 0, |
| 31 | + 'func-names': 0, |
| 32 | + 'import/no-extraneous-dependencies': [ |
| 33 | + 'error', |
34 | 34 | {
|
35 | 35 | devDependencies: [
|
36 |
| - "esbuild.js", |
37 |
| - "cypress.config.js", |
38 |
| - "**/*{.,_,-}{test,spec}.js", // tests where the extension or filename suffix denotes that it is a test |
| 36 | + 'esbuild.js', |
| 37 | + 'cypress.config.js', |
| 38 | + '**/*{.,_,-}{test,spec}.js', // tests where the extension or filename suffix denotes that it is a test |
39 | 39 | ],
|
40 | 40 | optionalDependencies: false,
|
41 | 41 | },
|
42 | 42 | ],
|
43 |
| - "max-len": 0, |
44 |
| - "no-console": ["error", { allow: ["error"] }], |
45 |
| - "no-param-reassign": 0, |
46 |
| - "no-restricted-globals": 0, |
47 |
| - "no-use-before-define": 0, |
48 |
| - "no-useless-escape": 0, |
49 |
| - "one-var": ["error", "never"], |
50 |
| - "prefer-destructuring": 0, |
51 |
| - "prettier/prettier": "error", |
| 43 | + 'max-len': 0, |
| 44 | + 'no-console': ['error', { allow: ['error'] }], |
| 45 | + 'no-param-reassign': 0, |
| 46 | + 'no-restricted-globals': 0, |
| 47 | + 'no-use-before-define': 0, |
| 48 | + 'no-useless-escape': 0, |
| 49 | + 'one-var': ['error', 'never'], |
| 50 | + 'prefer-destructuring': 0, |
| 51 | + 'prettier/prettier': 'error', |
52 | 52 | camelcase: 0,
|
53 | 53 | indent: 0,
|
54 | 54 | strict: 0,
|
55 | 55 | },
|
56 | 56 | settings: {
|
57 |
| - "import/resolver": { |
58 |
| - "../eslint-plugin-import-resolver.js": { someConfig: 1 }, |
| 57 | + 'import/resolver': { |
| 58 | + '../eslint-plugin-import-resolver.js': { someConfig: 1 }, |
59 | 59 | },
|
60 | 60 | },
|
61 | 61 | };
|
0 commit comments