Skip to content

Commit

Permalink
feat: Renamed rules, removed Vue support
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Jan 30, 2024
1 parent 3b25277 commit a29326f
Show file tree
Hide file tree
Showing 2,368 changed files with 6,169 additions and 12,952 deletions.
329 changes: 2 additions & 327 deletions .eslintrc.rule-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ module.exports = {
"warn",
{ selector: `${prefixes.testRule} > Literal:first-child` }
],
"misc/match-filename/testRule-rule": [
"warn",
{
format: "kebab-case",
selector:
"VariableDeclarator[id.name=rule] > MemberExpression > Literal.property"
}
],
"misc/no-restricted-syntax/no-sentence-dot": [
"warn",
{
Expand Down Expand Up @@ -227,22 +219,6 @@ module.exports = {
trigger: `${prefixes.createRule} > ObjectExpression > Property[key.name=isSuboptions]`
}
],
"misc/require-syntax/require-vue-false": [
"warn",
{
message: 'Prefer "vue: false" option',
selector: `${prefixes.createRule} > ObjectExpression > Property[key.name=create] > ArrowFunctionExpression[params.length<=1]`,
trigger: `${prefixes.createRule} > ObjectExpression > Property[key.name=vue][value.value=true]`
}
],
"misc/require-syntax/require-vue-true": [
"warn",
{
message: 'Prefer "vue: true" option',
selector: `${prefixes.createRule} > ObjectExpression > Property[key.name=create] > ArrowFunctionExpression[params.length>=2]`,
trigger: `${prefixes.createRule} > ObjectExpression > Property[key.name=vue][value.value=false]`
}
],
"spellcheck/spell-checker": [
"warn",
{ ...spellChecker, skipWords: [...spellChecker.skipWords, "inferrable"] }
Expand Down Expand Up @@ -282,7 +258,6 @@ module.exports = {
"name",
"fixable",
"hasSuggestions",
"vue",
"isOptions",
"defaultOptions",
"isSuboptions",
Expand Down Expand Up @@ -318,7 +293,7 @@ module.exports = {
}
},
{
files: "./src/{core,typescript,vue}/base/*",
files: "./src/{core,typescript}/base/*",
rules: {
"misc/export-matching-filename-only": "off",
"misc/sort-statements": [
Expand Down Expand Up @@ -351,8 +326,7 @@ module.exports = {
}
},
{
files:
"./src/{quasar-extension,real-classes,real-config,real-facades,real-fns,real-service-providers,type-essentials}/**",
files: "./src/{project-chore,ts-misc}/**",
rules: {
"misc/no-restricted-syntax/no-unnecessary-docs": [
"warn",
Expand Down Expand Up @@ -412,305 +386,6 @@ module.exports = {
}
]
}
},
{
files: "./tests/eslintrc/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "eslintrc/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/jest/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "jest/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-config/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-config/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-config/eslintrc/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-config/eslintrc/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-facades/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-facades/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/jest/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/jest/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/array/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/array/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/converters/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/converters/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/guards/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/guards/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/json/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/json/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/object/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/object/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/program-flow/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/program-flow/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/reflect/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/reflect/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/real-fns/core/types/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "real-fns/types/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/quasar-extension/extras/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "quasar-extension/extras/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/quasar-extension/jest/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "quasar-extension/jest/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/quasar-extension/core/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "quasar-extension/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/quasar-extension/vue/script/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "quasar-extension/vue/script/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/quasar-extension/vue/template/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "quasar-extension/vue/template/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/type-essentials/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "type-essentials/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/typescript/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "typescript/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
},
{
files: "./tests/vue/**",
rules: {
"misc/match-filename/testRule-rule": [
"warn",
{
prefix: "vue/",
selector:
"VariableDeclarator[id.name=rule] > .init > Literal.property"
}
]
}
}
]
};
5 changes: 1 addition & 4 deletions .eslintrc.synonyms.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = [
"misc/match-filename/createRule-id",
"misc/match-filename/createRule-name",
"misc/match-filename/testRule-name",
"misc/match-filename/testRule-rule",
"misc/no-restricted-syntax/no-ast",
"misc/no-restricted-syntax/no-sentence-dot",
"misc/no-restricted-syntax/no-skipped-tests",
Expand All @@ -20,7 +19,5 @@ module.exports = [
"misc/require-syntax/require-optionTypes",
"misc/require-syntax/require-suboptionDescriptions",
"misc/require-syntax/require-suboptionTypes",
"misc/require-syntax/require-suboptionsKey",
"misc/require-syntax/require-vue-false",
"misc/require-syntax/require-vue-true"
"misc/require-syntax/require-suboptionsKey"
];
Loading

0 comments on commit a29326f

Please sign in to comment.