|
| 1 | +import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"; |
| 2 | +import globals from "globals"; |
| 3 | +import babelParser from "@babel/eslint-parser"; |
| 4 | +import js from "@eslint/js"; |
| 5 | + |
| 6 | +export default [ |
| 7 | + { |
| 8 | + ignores: [ |
| 9 | + "**/lib", |
| 10 | + "**/node_modules", |
| 11 | + "**/scripts", |
| 12 | + "test/output", |
| 13 | + "test/fixtures", |
| 14 | + ], |
| 15 | + }, |
| 16 | + js.configs.recommended, |
| 17 | + { |
| 18 | + languageOptions: { |
| 19 | + globals: globals.node, |
| 20 | + parser: babelParser, |
| 21 | + ecmaVersion: "latest", |
| 22 | + sourceType: "module", |
| 23 | + }, |
| 24 | + |
| 25 | + rules: { |
| 26 | + camelcase: "off", |
| 27 | + "consistent-return": "off", |
| 28 | + curly: ["error", "multi-line"], |
| 29 | + "linebreak-style": ["error", "unix"], |
| 30 | + "max-len": ["error", 110, 2], |
| 31 | + "new-cap": "off", |
| 32 | + "no-cond-assign": "off", |
| 33 | + "no-confusing-arrow": "error", |
| 34 | + "no-console": "off", |
| 35 | + "no-constant-condition": "off", |
| 36 | + "no-empty": "off", |
| 37 | + "no-fallthrough": "off", |
| 38 | + "no-inner-declarations": "off", |
| 39 | + "no-labels": "off", |
| 40 | + "no-loop-func": "off", |
| 41 | + "no-process-exit": "off", |
| 42 | + "no-return-assign": "off", |
| 43 | + "no-shadow": "off", |
| 44 | + "no-underscore-dangle": "off", |
| 45 | + "no-unreachable": "off", |
| 46 | + "no-use-before-define": "off", |
| 47 | + strict: "off", |
| 48 | + }, |
| 49 | + }, |
| 50 | + eslintPluginPrettierRecommended, |
| 51 | +]; |
0 commit comments