Remove eslint and update stylelint.
This commit is contained in:
parent
1aa7d710b9
commit
621b52b339
5 changed files with 526 additions and 1952 deletions
|
|
@ -1,2 +0,0 @@
|
||||||
*.compact.js
|
|
||||||
*.min.js
|
|
||||||
147
.eslintrc.yaml
147
.eslintrc.yaml
|
|
@ -1,147 +0,0 @@
|
||||||
env:
|
|
||||||
browser: true
|
|
||||||
es2021: true
|
|
||||||
extends: 'eslint:recommended'
|
|
||||||
plugins:
|
|
||||||
- template
|
|
||||||
parserOptions:
|
|
||||||
ecmaVersion: 12
|
|
||||||
globals:
|
|
||||||
jQuery: true
|
|
||||||
u: true
|
|
||||||
rules:
|
|
||||||
array-bracket-spacing:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
block-scoped-var: "error"
|
|
||||||
brace-style:
|
|
||||||
- "error"
|
|
||||||
- stroustrup
|
|
||||||
- allowSingleLine: true
|
|
||||||
comma-dangle:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
comma-style:
|
|
||||||
- "error"
|
|
||||||
- last
|
|
||||||
computed-property-spacing:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
curly:
|
|
||||||
- "error"
|
|
||||||
- all
|
|
||||||
eol-last: "error"
|
|
||||||
eqeqeq:
|
|
||||||
- "error"
|
|
||||||
- smart
|
|
||||||
guard-for-in: "error"
|
|
||||||
indent:
|
|
||||||
- "error"
|
|
||||||
- 2
|
|
||||||
- SwitchCase: 1
|
|
||||||
key-spacing:
|
|
||||||
- "error"
|
|
||||||
- afterColon: true
|
|
||||||
beforeColon: false
|
|
||||||
keyword-spacing:
|
|
||||||
- "error"
|
|
||||||
- after: true
|
|
||||||
before: true
|
|
||||||
linebreak-style:
|
|
||||||
- "error"
|
|
||||||
- unix
|
|
||||||
lines-around-comment:
|
|
||||||
- "error"
|
|
||||||
- afterBlockComment: false
|
|
||||||
beforeBlockComment: true
|
|
||||||
max-nested-callbacks:
|
|
||||||
- "warn"
|
|
||||||
- 3
|
|
||||||
new-parens: "error"
|
|
||||||
no-array-constructor: "error"
|
|
||||||
no-caller: "error"
|
|
||||||
no-catch-shadow: "error"
|
|
||||||
no-eval: "error"
|
|
||||||
no-extend-native: "error"
|
|
||||||
no-extra-bind: "error"
|
|
||||||
no-extra-parens:
|
|
||||||
- "error"
|
|
||||||
- functions
|
|
||||||
no-implied-eval: "error"
|
|
||||||
no-iterator: "error"
|
|
||||||
no-label-var: "error"
|
|
||||||
no-labels: "error"
|
|
||||||
no-lone-blocks: "error"
|
|
||||||
no-loop-func: "error"
|
|
||||||
no-multi-spaces: "error"
|
|
||||||
no-multi-str: "error"
|
|
||||||
no-native-reassign: "error"
|
|
||||||
no-nested-ternary: "error"
|
|
||||||
no-new-func: "error"
|
|
||||||
no-new-object: "error"
|
|
||||||
no-new-wrappers: "error"
|
|
||||||
no-octal-escape: "error"
|
|
||||||
no-process-exit: "error"
|
|
||||||
no-proto: "error"
|
|
||||||
no-return-assign: "error"
|
|
||||||
no-script-url: "error"
|
|
||||||
no-sequences: "error"
|
|
||||||
no-shadow-restricted-names: "error"
|
|
||||||
no-spaced-func: "error"
|
|
||||||
no-trailing-spaces: "error"
|
|
||||||
no-undef-init: "error"
|
|
||||||
no-undefined: "error"
|
|
||||||
no-unused-expressions: "error"
|
|
||||||
no-unused-vars:
|
|
||||||
- "error"
|
|
||||||
- args: none
|
|
||||||
vars: all
|
|
||||||
no-with: "error"
|
|
||||||
object-curly-spacing:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
one-var:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
quote-props:
|
|
||||||
- "error"
|
|
||||||
- consistent-as-needed
|
|
||||||
quotes:
|
|
||||||
- "error"
|
|
||||||
- single
|
|
||||||
- avoid-escape
|
|
||||||
semi:
|
|
||||||
- "error"
|
|
||||||
- always
|
|
||||||
semi-spacing:
|
|
||||||
- "error"
|
|
||||||
- after: true
|
|
||||||
before: false
|
|
||||||
space-before-blocks:
|
|
||||||
- "error"
|
|
||||||
- always
|
|
||||||
space-before-function-paren:
|
|
||||||
- "error"
|
|
||||||
- anonymous: always
|
|
||||||
named: never
|
|
||||||
space-in-parens:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
space-infix-ops: "error"
|
|
||||||
space-unary-ops:
|
|
||||||
- "error"
|
|
||||||
- nonwords: false
|
|
||||||
words: true
|
|
||||||
spaced-comment:
|
|
||||||
- "error"
|
|
||||||
- always
|
|
||||||
strict: "error"
|
|
||||||
valid-jsdoc:
|
|
||||||
- "warn"
|
|
||||||
- prefer:
|
|
||||||
property: prop
|
|
||||||
returns: return
|
|
||||||
requireReturn: false
|
|
||||||
yoda:
|
|
||||||
- "error"
|
|
||||||
- never
|
|
||||||
|
|
@ -1,94 +1,22 @@
|
||||||
plugins:
|
|
||||||
- stylelint-scss
|
|
||||||
extends:
|
extends:
|
||||||
- stylelint-config-standard-scss
|
- stylelint-config-standard-scss
|
||||||
rules:
|
rules:
|
||||||
at-rule-disallowed-list:
|
|
||||||
- debug
|
|
||||||
at-rule-no-unknown: null
|
|
||||||
at-rule-no-vendor-prefix: true
|
|
||||||
block-no-empty: null
|
block-no-empty: null
|
||||||
block-opening-brace-space-before: always
|
|
||||||
color-hex-case: lower
|
|
||||||
color-hex-length: short
|
|
||||||
color-named: never
|
|
||||||
color-no-hex: true
|
|
||||||
color-no-invalid-hex: true
|
|
||||||
declaration-bang-space-after: never
|
|
||||||
declaration-bang-space-before: always
|
|
||||||
declaration-block-no-redundant-longhand-properties: null
|
declaration-block-no-redundant-longhand-properties: null
|
||||||
declaration-block-semicolon-newline-after: always
|
|
||||||
declaration-block-semicolon-space-before: never
|
|
||||||
declaration-block-single-line-max-declarations: 1
|
|
||||||
declaration-block-trailing-semicolon: always
|
|
||||||
declaration-colon-space-after: always-single-line
|
|
||||||
declaration-colon-space-before: never
|
|
||||||
declaration-empty-line-before: null
|
declaration-empty-line-before: null
|
||||||
declaration-no-important: true
|
|
||||||
declaration-property-value-disallowed-list:
|
|
||||||
border:
|
|
||||||
- none
|
|
||||||
border-top:
|
|
||||||
- none
|
|
||||||
border-right:
|
|
||||||
- none
|
|
||||||
border-bottom:
|
|
||||||
- none
|
|
||||||
border-left:
|
|
||||||
- none
|
|
||||||
font-family-name-quotes: null
|
|
||||||
function-comma-space-after: always-single-line
|
|
||||||
function-parentheses-space-inside: never
|
|
||||||
function-url-quotes: always
|
|
||||||
indentation: 2
|
|
||||||
length-zero-no-unit: true
|
|
||||||
max-nesting-depth:
|
|
||||||
- 3
|
|
||||||
- ignoreAtRules:
|
|
||||||
- each
|
|
||||||
- media
|
|
||||||
- supports
|
|
||||||
- include
|
|
||||||
media-feature-name-no-vendor-prefix: true
|
|
||||||
media-feature-parentheses-space-inside: never
|
|
||||||
no-descending-specificity: null
|
no-descending-specificity: null
|
||||||
no-missing-end-of-source-newline: true
|
|
||||||
number-leading-zero: never
|
|
||||||
number-no-trailing-zeros: true
|
|
||||||
property-no-unknown: true
|
|
||||||
property-no-vendor-prefix: true
|
|
||||||
rule-empty-line-before:
|
|
||||||
- always-multi-line
|
|
||||||
- except:
|
|
||||||
- first-nested
|
|
||||||
ignore:
|
|
||||||
- after-comment
|
|
||||||
scss/at-extend-no-missing-placeholder: true
|
|
||||||
scss/at-function-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
|
||||||
scss/at-import-no-partial-leading-underscore: true
|
|
||||||
scss/at-import-partial-extension-blacklist:
|
|
||||||
- scss
|
|
||||||
scss/at-mixin-pattern: "^[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
|
||||||
scss/at-mixin-argumentless-call-parentheses: null
|
|
||||||
scss/at-rule-no-unknown: true
|
|
||||||
scss/comment-no-empty: null
|
|
||||||
scss/dollar-variable-colon-space-after: always
|
|
||||||
scss/dollar-variable-colon-space-before: never
|
|
||||||
scss/dollar-variable-pattern: "^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$"
|
|
||||||
scss/double-slash-comment-empty-line-before: null
|
|
||||||
scss/no-global-function-names: null
|
|
||||||
scss/percent-placeholder-pattern: "^[a-z0-9-_]+$"
|
|
||||||
#scss/selector-no-redundant-nesting-selector: true
|
|
||||||
selector-class-pattern:
|
selector-class-pattern:
|
||||||
- "^[a-z0-9\\-]+$"
|
- "^[a-z0-9\\-]+$"
|
||||||
- message: Selector should be written in lowercase with hyphens (selector-class-pattern)
|
- message: Selector should be written in lowercase with hyphens (selector-class-pattern)
|
||||||
selector-list-comma-newline-after: always
|
scss/at-mixin-argumentless-call-parentheses: null
|
||||||
selector-max-compound-selectors: 3
|
scss/comment-no-empty: null
|
||||||
selector-max-id: 0
|
scss/double-slash-comment-empty-line-before:
|
||||||
#selector-no-qualifying-type: true
|
- always
|
||||||
selector-no-vendor-prefix: true
|
- except:
|
||||||
selector-pseudo-element-colon-notation: double
|
- first-nested
|
||||||
selector-pseudo-element-no-unknown: true
|
ignore:
|
||||||
shorthand-property-no-redundant-values: true
|
- between-comments
|
||||||
string-quotes: single
|
- stylelint-commands
|
||||||
value-no-vendor-prefix: true
|
- inside-block
|
||||||
|
scss/no-global-function-names: null
|
||||||
|
scss/percent-placeholder-pattern: null
|
||||||
|
|
|
||||||
2142
package-lock.json
generated
2142
package-lock.json
generated
File diff suppressed because it is too large
Load diff
17
package.json
17
package.json
|
|
@ -3,10 +3,10 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "The node.js requirements to lint this project.",
|
"description": "The node.js requirements to lint this project.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint-theme:css": "stylelint --quiet-deprecation-warnings \"assets/sass/**/*.scss\"",
|
"lint-theme:css": "stylelint \"assets/sass/**/*.scss\"",
|
||||||
"lint-theme:js": "eslint \"assets/js/**/*.js\"",
|
"lint-theme:js": "",
|
||||||
"lint-project:css": "stylelint --quiet-deprecation-warnings \"../../assets/sass/**/*.scss\"",
|
"lint-project:css": "stylelint \"../../assets/sass/**/*.scss\"",
|
||||||
"lint-project:js": "eslint \"../../assets/js/**/*.js\"",
|
"lint-project:js": "",
|
||||||
"lint-theme": "npm run lint-theme:css && npm run lint-theme:js",
|
"lint-theme": "npm run lint-theme:css && npm run lint-theme:js",
|
||||||
"lint-project": "npm run lint-project:css && npm run lint-project:js",
|
"lint-project": "npm run lint-project:css && npm run lint-project:js",
|
||||||
"lint:css": "npm run lint-theme:css && npm run lint-project:css",
|
"lint:css": "npm run lint-theme:css && npm run lint-project:css",
|
||||||
|
|
@ -20,14 +20,11 @@
|
||||||
"author": "Fredrik Jonsson",
|
"author": "Fredrik Jonsson",
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.45.0",
|
"stylelint": "^16.11.0",
|
||||||
"eslint-plugin-template": "^0.7.0",
|
"stylelint-config-standard-scss": "^13.1.0"
|
||||||
"stylelint": "^15.10.1",
|
|
||||||
"stylelint-config-standard-scss": "^10.0.0",
|
|
||||||
"stylelint-scss": "^5.0.1"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue