11"use strict"
22
3- const version = require ( "./package.json" ) . version
3+ // const version = require("./package.json").version
44
55module . exports = {
66 parserOptions : {
77 sourceType : "script" ,
88 ecmaVersion : 2018 ,
99 } ,
10- plugins : [ ' internal-rules' ] ,
10+ plugins : [ " internal-rules" ] ,
1111 extends : [
1212 "plugin:@mysticatea/es2015" ,
1313 "plugin:@mysticatea/+node" ,
1414 "plugin:@mysticatea/+eslint-plugin" ,
1515 ] ,
1616 rules : {
17- ' require-jsdoc' : ' error' ,
17+ " require-jsdoc" : " error" ,
1818 "no-warning-comments" : "warn" ,
19- ' no-lonely-if' : ' off' ,
20- "@mysticatea/ts/ban-ts-ignore" : ' off'
19+ " no-lonely-if" : " off" ,
20+ "@mysticatea/ts/ban-ts-ignore" : " off" ,
2121 } ,
2222 overrides : [
2323 {
@@ -35,41 +35,51 @@ module.exports = {
3535 {
3636 files : [ "lib/rules/**" ] ,
3737 rules : {
38- "@mysticatea/eslint-plugin/report-message-format" : [ "error" , "[^a-z].*\\.$" ] ,
39- "internal-rules/require-meta-docs-url" : [ "warn" , {
40- pattern : `https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html` ,
41- } ] ,
42- "@mysticatea/eslint-plugin/require-meta-docs-url" : "off" ,
43- }
38+ "@mysticatea/eslint-plugin/report-message-format" : [
39+ "error" ,
40+ "[^a-z].*\\.$" ,
41+ ] ,
42+ "internal-rules/require-meta-docs-url" : [
43+ "warn" ,
44+ {
45+ pattern :
46+ "https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/{{name}}.html" ,
47+ } ,
48+ ] ,
49+ "@mysticatea/eslint-plugin/require-meta-docs-url" : "off" ,
50+ } ,
4451 } ,
4552 {
46- files : [ "scripts/*.js" , "tests/**/*.js" , "scripts/*.ts" , "tests/**/*.ts" ] ,
53+ files : [
54+ "scripts/*.js" ,
55+ "tests/**/*.js" ,
56+ "scripts/*.ts" ,
57+ "tests/**/*.ts" ,
58+ ] ,
4759 rules : {
4860 "require-jsdoc" : "off" ,
49- "no-console" : "off"
61+ "no-console" : "off" ,
5062 } ,
5163 } ,
5264 {
5365 files : [ "*.vue" ] ,
5466 parserOptions : {
5567 sourceType : "module" ,
5668 } ,
57- extends : [
58- "plugin:vue-scoped-css/recommended"
59- ] ,
60- globals :{
61- require : true
69+ extends : [ "plugin:vue-scoped-css/recommended" ] ,
70+ globals : {
71+ require : true ,
6272 } ,
6373 } ,
6474 {
6575 files : [ "docs/.vuepress/**" ] ,
6676 parserOptions : {
6777 sourceType : "module" ,
6878 ecmaVersion : 2019 ,
69- parser : ' babel-eslint'
79+ parser : " babel-eslint" ,
7080 } ,
7181 globals : {
72- window : true
82+ window : true ,
7383 } ,
7484 rules : {
7585 "require-jsdoc" : "off" ,
@@ -78,7 +88,9 @@ module.exports = {
7888 "@mysticatea/vue/comma-dangle" : "off" ,
7989 "@mysticatea/vue/html-indent" : "off" ,
8090 "@mysticatea/vue/html-self-closing" : "off" ,
81- "@mysticatea/node/no-unsupported-features/es-syntax" : "off"
91+ "@mysticatea/node/no-unsupported-features/es-syntax" : "off" ,
92+ "@mysticatea/node/no-missing-import" : "off" ,
93+ "@mysticatea/node/no-missing-require" : "off" ,
8294 } ,
8395 } ,
8496 ] ,
0 commit comments