Skip to content

Commit c4dd362

Browse files
authored
Merge pull request #48 from phanect/noconflict-typescript
Add @typescript-eslint rules to noconflict config
2 parents 169c324 + bf6d6ec commit c4dd362

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,16 @@ Or you can extend `plugin:editorconfig/all` instead of adding rules.
5454
Following rules may conflict `editorconfig/*` rule.
5555
It is recommended to disable them.
5656

57-
- eol-last
58-
- indent
59-
- linebreak-style
60-
- no-trailing-spaces
61-
- unicode-bom
57+
- `eol-last`
58+
- `indent`
59+
- `linebreak-style`
60+
- `no-trailing-spaces`
61+
- `unicode-bom`
62+
- `@typescript-eslint/eol-last`
63+
- `@typescript-eslint/indent`
64+
- `@typescript-eslint/linebreak-style`
65+
- `@typescript-eslint/no-trailing-spaces`
66+
- `@typescript-eslint/unicode-bom`
6267

6368
If above rules are specified in your .eslintrc, just remove them.
6469
If they are specified in the extended config, consider adding `plugin:editorconfig/noconflict` to your `extends`.

main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ module.exports = {
1616
"linebreak-style": "off",
1717
"no-trailing-spaces": "off",
1818
"unicode-bom": "off",
19+
"@typescript-eslint/eol-last": "off",
20+
"@typescript-eslint/indent": "off",
21+
"@typescript-eslint/linebreak-style": "off",
22+
"@typescript-eslint/no-trailing-spaces": "off",
23+
"@typescript-eslint/unicode-bom": "off",
1924
},
2025
},
2126
all: {
@@ -25,6 +30,11 @@ module.exports = {
2530
"linebreak-style": "off",
2631
"no-trailing-spaces": "off",
2732
"unicode-bom": "off",
33+
"@typescript-eslint/eol-last": "off",
34+
"@typescript-eslint/indent": "off",
35+
"@typescript-eslint/linebreak-style": "off",
36+
"@typescript-eslint/no-trailing-spaces": "off",
37+
"@typescript-eslint/unicode-bom": "off",
2838

2939
"editorconfig/charset": "error",
3040
"editorconfig/eol-last": "error",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-editorconfig",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "An ESLint plugin to enforce EditorConfig rules",
55
"main": "main.js",
66
"scripts": {

test-packages/base-rules-conflict/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
root: true,
5+
extends: "plugin:editorconfig/noconflict",
56

67
env: {
78
es6: true,

test-packages/js/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
root: true,
5+
extends: "plugin:editorconfig/noconflict",
56

67
env: {
78
es6: true,

test-packages/ts/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module.exports = {
44
root: true,
5+
extends: "plugin:editorconfig/noconflict",
56

67
env: {
78
es6: true,

0 commit comments

Comments
 (0)