Skip to content

Commit

Permalink
Several rule changes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordmau5 committed Nov 8, 2023
1 parent 3deaf87 commit e35f6eb
Show file tree
Hide file tree
Showing 100 changed files with 2,430 additions and 2,120 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*]
indent_style = tab
indent_size = tab
tab_width = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.yaml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
43 changes: 32 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ module.exports = {
},
'extends': [
'eslint:recommended',
'plugin:vue/recommended'
'plugin:vue/recommended',
'plugin:jsdoc/recommended'
],
'plugins': [
'vue',
'react'
'react',
'jsdoc'
],
'parserOptions': {
//'parser': 'babel-eslint',
Expand All @@ -24,6 +26,15 @@ module.exports = {
'pragma': 'createElement'
}
},
'overrides': [
{
'files': [
'*.jsx',
'*.js',
'*.vue'
]
}
],
'globals': {
'import': false,
'require': false,
Expand Down Expand Up @@ -55,6 +66,12 @@ module.exports = {
'no-throw-literal': ['error'],
'no-undef-init': ['error'],
'no-unmodified-loop-condition': ['error'],
'no-unused-vars': [
'error',
{
'args': 'none',
}
],
'no-use-before-define': ['error', {
'functions': false,
'classes': false
Expand All @@ -63,16 +80,10 @@ module.exports = {
'no-useless-concat': ['warn'],
'no-useless-return': ['warn'],
'no-void': ['error'],
'no-warning-comments': ['warn'],
'no-warning-comments': 'off',
'no-with': ['error'],
'radix': ['error'],
'require-await': ['warn'],
'valid-jsdoc': [
'warn',
{
'requireReturn': false
}
],
'yoda': ['warn'],

'arrow-body-style': ['warn', 'as-needed'],
Expand Down Expand Up @@ -129,6 +140,11 @@ module.exports = {
'multiline': 'always'
}
],
'vue/no-textarea-mustache': 'off',
'vue/no-mutating-props': ['error', {
'shallowOnly': true
}],
'vue/multi-word-component-names': 'off',

'jsx-quotes': ['error', 'prefer-double'],
'react/jsx-boolean-value': 'error',
Expand All @@ -154,6 +170,11 @@ module.exports = {
'beforeClosing': 'never'
}],
'react/jsx-uses-react': 'error',
'react/jsx-wrap-multilines': 'error'
'react/jsx-wrap-multilines': 'error',

'jsdoc/require-param-description': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-property-description': 'off',
'jsdoc/check-property-names': 'off',
}
};
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"esbuild-loader": "^4.0.2",
"eslint": "^8.48.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-vue": "^9.17.0",
"extract-loader": "^5.1.0",
Expand Down Expand Up @@ -51,7 +52,8 @@
"pnpm": {
"overrides": {
"ansi-regex@>2.1.1 <5.0.1": ">=5.0.1",
"glob-parent@<5.1.2": ">=5.1.2"
"glob-parent@<5.1.2": ">=5.1.2",
"chalk@<4": ">=4 <5"
}
}
}
}
Loading

0 comments on commit e35f6eb

Please sign in to comment.