Skip to content

Commit

Permalink
fix: elint config changed from .js to .cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick Küchlin authored and Yannick Küchlin committed Jul 28, 2022
1 parent 9e822f6 commit cab5355
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# http://editorconfig.org
root = true

[*.{ts,tsx,js,jsx,mjs}]
[*.{ts,tsx,js,cjs,jsx,mjs}]
indent_style = space
indent_size = 2
end_of_line = lf
Expand Down
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
dist-docs
22 changes: 11 additions & 11 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ module.exports = {
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript'
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module'
sourceType: 'module',
},
plugins: ['prettier', '@typescript-eslint', 'import'],
rules: {
Expand All @@ -24,8 +24,8 @@ module.exports = {
{
css: 'ignorePackages',
json: 'ignorePackages',
md: 'ignorePackages'
}
md: 'ignorePackages',
},
],
'import/default': 2,
'import/export': 2,
Expand All @@ -37,13 +37,13 @@ module.exports = {
'import/no-anonymous-default-export': 0,
'import/order': 'error',
'react/no-unescaped-entities': 'off',
'react/no-children-prop': 'off'
'react/no-children-prop': 'off',
},
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json'
}
}
}
}
project: './tsconfig.json',
},
},
},
};
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.yml
*.yml
stats.html
31 changes: 18 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "tsc-watch",
"command": "tsc",
"args": ["-w", "-p", ".", "--noEmit"],
"isBackground": true,
"problemMatcher": "$tsc-watch"
}
]
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "tsc-watch",
"command": "tsc",
"args": ["-w", "-p", ".", "--noEmit"],
"isBackground": true,
"problemMatcher": "$tsc-watch"
},
{
"type": "eslint",
"problemMatcher": ["$eslint-stylish"],
"label": "eslint check"
}
]
}

0 comments on commit cab5355

Please sign in to comment.