Add eslint, stylelint, prettier, and pre-commit (#484)
- When you try to commit, Pre-commit will run checks for all three, if
installed, _only_ on staged files, and prevent committing if the linters are
unhappy.
- Several eslint rules that generate a lot of errors are disabled for now.
That's to allow a more gradual transition, so you won't change 1 line and be
told to fix 100 other lines (but maybe like 20 because there are still a lot
of rules enabled).
- Prettier is set to require pragma. That's also to allow a more gradual
transition. As each file is tidied up, run Prettier on it, and it'll add a
special comment that tells it that it's now responsible for keeping that one
tidy.
2020-12-23 11:45:53 +03:00
|
|
|
{
|
2024-08-05 19:22:56 +03:00
|
|
|
"extends": ["stylelint-config-standard"],
|
|
|
|
"ignoreFiles": ["./node_modules/**/*.*"],
|
Add eslint, stylelint, prettier, and pre-commit (#484)
- When you try to commit, Pre-commit will run checks for all three, if
installed, _only_ on staged files, and prevent committing if the linters are
unhappy.
- Several eslint rules that generate a lot of errors are disabled for now.
That's to allow a more gradual transition, so you won't change 1 line and be
told to fix 100 other lines (but maybe like 20 because there are still a lot
of rules enabled).
- Prettier is set to require pragma. That's also to allow a more gradual
transition. As each file is tidied up, run Prettier on it, and it'll add a
special comment that tells it that it's now responsible for keeping that one
tidy.
2020-12-23 11:45:53 +03:00
|
|
|
"rules": {
|
2024-08-05 19:22:56 +03:00
|
|
|
"import-notation": "string",
|
|
|
|
"at-rule-no-unknown": [true, { "ignoreAtRules": ["apply", "screen"] }],
|
|
|
|
"at-rule-empty-line-before": [
|
|
|
|
"always",
|
|
|
|
{ "except": ["blockless-after-same-name-blockless"], "ignoreAtRules": ["apply"] }
|
Add eslint, stylelint, prettier, and pre-commit (#484)
- When you try to commit, Pre-commit will run checks for all three, if
installed, _only_ on staged files, and prevent committing if the linters are
unhappy.
- Several eslint rules that generate a lot of errors are disabled for now.
That's to allow a more gradual transition, so you won't change 1 line and be
told to fix 100 other lines (but maybe like 20 because there are still a lot
of rules enabled).
- Prettier is set to require pragma. That's also to allow a more gradual
transition. As each file is tidied up, run Prettier on it, and it'll add a
special comment that tells it that it's now responsible for keeping that one
tidy.
2020-12-23 11:45:53 +03:00
|
|
|
],
|
|
|
|
"no-descending-specificity": null
|
|
|
|
}
|
|
|
|
}
|