Skip to content

Commit

Permalink
Add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 14, 2016
1 parent e947cac commit c30adcc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = null
1 change: 1 addition & 0 deletions packages/eslint-config-airbnb-base/.editorconfig
2 changes: 2 additions & 0 deletions packages/eslint-config-airbnb-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Airbnb's base JS ESLint config, following our styleguide",
"main": "index.js",
"scripts": {
"prelint": "editorconfig-tools check * rules/* test/*",
"lint": "eslint .",
"tests-only": "babel-tape-runner ./test/test-*.js",
"prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest",
Expand Down Expand Up @@ -47,6 +48,7 @@
"devDependencies": {
"babel-preset-airbnb": "^2.1.1",
"babel-tape-runner": "^2.0.1",
"editorconfig-tools": "^0.1.1",
"eslint": "^3.12.1",
"eslint-find-rules": "^1.14.3",
"eslint-plugin-import": "^2.2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-airbnb/.editorconfig
2 changes: 2 additions & 0 deletions packages/eslint-config-airbnb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Airbnb's ESLint config, following our styleguide",
"main": "index.js",
"scripts": {
"prelint": "editorconfig-tools check * rules/* test/*",
"lint": "eslint .",
"tests-only": "babel-tape-runner ./test/test-*.js",
"prepublish": "(in-install || eslint-find-rules --unused) && (not-in-publish || npm test) && safe-publish-latest",
Expand Down Expand Up @@ -50,6 +51,7 @@
"devDependencies": {
"babel-preset-airbnb": "^2.1.1",
"babel-tape-runner": "^2.0.1",
"editorconfig-tools": "^0.1.1",
"eslint": "^3.12.1",
"eslint-find-rules": "^1.14.3",
"eslint-plugin-import": "^2.2.0",
Expand Down

0 comments on commit c30adcc

Please sign in to comment.