Skip to content

Commit c30adcc

Browse files
committedDec 14, 2016
Add editorconfig

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed
 

‎.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
end_of_line = lf
10+
# editorconfig-tools is unable to ignore longs strings or urls
11+
max_line_length = null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.editorconfig

‎packages/eslint-config-airbnb-base/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Airbnb's base JS ESLint config, following our styleguide",
55
"main": "index.js",
66
"scripts": {
7+
"prelint": "editorconfig-tools check * rules/* test/*",
78
"lint": "eslint .",
89
"tests-only": "babel-tape-runner ./test/test-*.js",
910
"prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest",
@@ -47,6 +48,7 @@
4748
"devDependencies": {
4849
"babel-preset-airbnb": "^2.1.1",
4950
"babel-tape-runner": "^2.0.1",
51+
"editorconfig-tools": "^0.1.1",
5052
"eslint": "^3.12.1",
5153
"eslint-find-rules": "^1.14.3",
5254
"eslint-plugin-import": "^2.2.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.editorconfig

‎packages/eslint-config-airbnb/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Airbnb's ESLint config, following our styleguide",
55
"main": "index.js",
66
"scripts": {
7+
"prelint": "editorconfig-tools check * rules/* test/*",
78
"lint": "eslint .",
89
"tests-only": "babel-tape-runner ./test/test-*.js",
910
"prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest",
@@ -50,6 +51,7 @@
5051
"devDependencies": {
5152
"babel-preset-airbnb": "^2.1.1",
5253
"babel-tape-runner": "^2.0.1",
54+
"editorconfig-tools": "^0.1.1",
5355
"eslint": "^3.12.1",
5456
"eslint-find-rules": "^1.14.3",
5557
"eslint-plugin-import": "^2.2.0",

0 commit comments

Comments
 (0)
Please sign in to comment.