Skip to content

Commit 8f1b6f4

Browse files
authored
feat: introduction of editorconfig (#1069)
1 parent ed16330 commit 8f1b6f4

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
"prettier:diff": "yarn nit:source",
1616
"lint-heading-ids": "node scripts/headingIdLinter.js",
1717
"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",
1919
"tsc": "tsc --noEmit",
2020
"start": "next start",
2121
"postinstall": "patch-package && (is-ci || husky install .husky)",
2222
"check-all": "npm-run-all prettier lint:fix tsc rss",
2323
"rss": "node scripts/generateRss.js",
2424
"cache-reset": "rm -rf node_modules/.cache && rm -rf .next && yarn cache clean",
25+
"lint-editorconfig": "yarn editorconfig-checker",
2526
"textlint-test": "yarn mocha ./textlint/tests/utils && yarn mocha ./textlint/tests/rules",
2627
"textlint-docs": "node ./textlint/generators/genTranslateGlossaryDocs.js && git add wiki/translate-glossary.md",
2728
"textlint-lint": "yarn textlint ./src/content --rulesdir ./textlint/rules -f pretty-error"
@@ -65,6 +66,7 @@
6566
"asyncro": "^3.0.0",
6667
"autoprefixer": "^10.4.2",
6768
"babel-eslint": "10.x",
69+
"editorconfig-checker": "^6.0.0",
6870
"eslint": "7.x",
6971
"eslint-config-next": "12.0.3",
7072
"eslint-config-react-app": "^5.2.1",
@@ -115,6 +117,7 @@
115117
"showDetails": true
116118
},
117119
"lint-staged": {
120+
"*": "yarn editorconfig-checker",
118121
"*.{js,ts,jsx,tsx,css}": "yarn prettier",
119122
"src/**/*.md": [
120123
"yarn fix-headings",

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -2715,6 +2715,11 @@ eastasianwidth@^0.2.0:
27152715
resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz"
27162716
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
27172717

2718+
editorconfig-checker@^6.0.0:
2719+
version "6.0.0"
2720+
resolved "https://registry.yarnpkg.com/editorconfig-checker/-/editorconfig-checker-6.0.0.tgz#f9bdcbd13411aab9a208030f88051add97bff2f6"
2721+
integrity sha512-uyTOwLJzR/k7ugiu7ITjCzkLKBhXeirQZ8hGlUkt1u/hq2Qu1E8EslgFZDN+lxZoQc97eiI87sUFgVILK4P+YQ==
2722+
27182723
27192724
version "1.1.1"
27202725
resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz"

0 commit comments

Comments
 (0)