|
15 | 15 | "prettier:diff": "yarn nit:source",
|
16 | 16 | "lint-heading-ids": "node scripts/headingIdLinter.js",
|
17 | 17 | "fix-headings": "node scripts/headingIdLinter.js --fix",
|
18 |
| - "ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids rss", |
| 18 | + "ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids rss lint-editorconfig", |
19 | 19 | "tsc": "tsc --noEmit",
|
20 | 20 | "start": "next start",
|
21 | 21 | "postinstall": "patch-package && (is-ci || husky install .husky)",
|
22 | 22 | "check-all": "npm-run-all prettier lint:fix tsc rss",
|
23 | 23 | "rss": "node scripts/generateRss.js",
|
24 | 24 | "cache-reset": "rm -rf node_modules/.cache && rm -rf .next && yarn cache clean",
|
| 25 | + "lint-editorconfig": "yarn editorconfig-checker", |
25 | 26 | "textlint-test": "yarn mocha ./textlint/tests/utils && yarn mocha ./textlint/tests/rules",
|
26 | 27 | "textlint-docs": "node ./textlint/generators/genTranslateGlossaryDocs.js && git add wiki/translate-glossary.md",
|
27 | 28 | "textlint-lint": "yarn textlint ./src/content --rulesdir ./textlint/rules -f pretty-error"
|
|
65 | 66 | "asyncro": "^3.0.0",
|
66 | 67 | "autoprefixer": "^10.4.2",
|
67 | 68 | "babel-eslint": "10.x",
|
| 69 | + "editorconfig-checker": "^6.0.0", |
68 | 70 | "eslint": "7.x",
|
69 | 71 | "eslint-config-next": "12.0.3",
|
70 | 72 | "eslint-config-react-app": "^5.2.1",
|
|
115 | 117 | "showDetails": true
|
116 | 118 | },
|
117 | 119 | "lint-staged": {
|
| 120 | + "*": "yarn editorconfig-checker", |
118 | 121 | "*.{js,ts,jsx,tsx,css}": "yarn prettier",
|
119 | 122 | "src/**/*.md": [
|
120 | 123 | "yarn fix-headings",
|
|
0 commit comments