|
| 1 | +"use strict" |
| 2 | + |
| 3 | +// const version = require("./package.json").version |
| 4 | + |
| 5 | +module.exports = { |
| 6 | + parserOptions: { |
| 7 | + sourceType: "script", |
| 8 | + ecmaVersion: 2020, |
| 9 | + }, |
| 10 | + extends: [ |
| 11 | + "plugin:@mysticatea/es2015", |
| 12 | + "plugin:@mysticatea/+node", |
| 13 | + "plugin:@mysticatea/+eslint-plugin", |
| 14 | + ], |
| 15 | + rules: { |
| 16 | + "require-jsdoc": "error", |
| 17 | + "no-warning-comments": "warn", |
| 18 | + "no-lonely-if": "off", |
| 19 | + "@mysticatea/ts/ban-ts-ignore": "off", |
| 20 | + }, |
| 21 | + overrides: [ |
| 22 | + { |
| 23 | + files: ["*.ts"], |
| 24 | + rules: { |
| 25 | + // "@mysticatea/ts/no-require-imports": "off", |
| 26 | + // "@mysticatea/ts/no-var-requires": "off", |
| 27 | + "@mysticatea/node/no-missing-import": "off", |
| 28 | + "no-implicit-globals": "off", |
| 29 | + "@mysticatea/node/no-extraneous-import": "off", |
| 30 | + }, |
| 31 | + parserOptions: { |
| 32 | + sourceType: "module", |
| 33 | + project: "./tsconfig.json", |
| 34 | + }, |
| 35 | + }, |
| 36 | + { |
| 37 | + files: ["lib/rules/**"], |
| 38 | + rules: { |
| 39 | + "@mysticatea/eslint-plugin/report-message-format": [ |
| 40 | + "error", |
| 41 | + "[^a-z].*\\.$", |
| 42 | + ], |
| 43 | + "@mysticatea/eslint-plugin/require-meta-docs-url": "off", |
| 44 | + }, |
| 45 | + }, |
| 46 | + { |
| 47 | + files: ["scripts/**/*.ts", "tests/**/*.ts"], |
| 48 | + rules: { |
| 49 | + "require-jsdoc": "off", |
| 50 | + "no-console": "off", |
| 51 | + }, |
| 52 | + }, |
| 53 | + { |
| 54 | + files: ["*.vue"], |
| 55 | + parserOptions: { |
| 56 | + sourceType: "module", |
| 57 | + }, |
| 58 | + globals: { |
| 59 | + require: true, |
| 60 | + }, |
| 61 | + }, |
| 62 | + { |
| 63 | + files: ["docs/.vuepress/**"], |
| 64 | + parserOptions: { |
| 65 | + sourceType: "module", |
| 66 | + ecmaVersion: 2020, |
| 67 | + parser: "babel-eslint", |
| 68 | + }, |
| 69 | + globals: { |
| 70 | + window: true, |
| 71 | + }, |
| 72 | + rules: { |
| 73 | + "require-jsdoc": "off", |
| 74 | + "@mysticatea/vue/html-closing-bracket-newline": "off", |
| 75 | + "@mysticatea/vue/max-attributes-per-line": "off", |
| 76 | + "@mysticatea/vue/comma-dangle": "off", |
| 77 | + "@mysticatea/vue/html-indent": "off", |
| 78 | + "@mysticatea/vue/html-self-closing": "off", |
| 79 | + "@mysticatea/node/no-unsupported-features/es-syntax": "off", |
| 80 | + "@mysticatea/node/no-missing-import": "off", |
| 81 | + "@mysticatea/node/no-missing-require": "off", |
| 82 | + }, |
| 83 | + }, |
| 84 | + ], |
| 85 | +} |
0 commit comments