Skip to content

Commit

Permalink
Merge pull request #9 from jvalue/update-base-rules
Browse files Browse the repository at this point in the history
Update linting rules
  • Loading branch information
felix-oq authored Apr 18, 2023
2 parents 3cd19ac + 48757dd commit 7d230cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 37 deletions.
13 changes: 1 addition & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ module.exports = {
rules: {
'prettier/prettier': 'warn',

'@typescript-eslint/array-type': [
'warn',
{
default: 'array-simple',
readonly: 'generic',
},
],
'@typescript-eslint/consistent-type-assertions': [
'error',
{
Expand Down Expand Up @@ -72,10 +65,10 @@ module.exports = {
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'warn',

'accessor-pairs': 'error',
'array-callback-return': 'error',
'capitalized-comments': ['warn', 'always'],
curly: 'error',
'default-case-last': 'error',
'default-param-last': 'error',
Expand All @@ -95,10 +88,6 @@ module.exports = {
],
'no-self-compare': 'error',
'no-throw-literal': 'error',

// See https://github.com/typescript-eslint/typescript-eslint/issues/1041
'no-unreachable': 'error',

'no-useless-rename': 'error',
'no-useless-return': 'error',
'import/first': 'warn',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jvalue/eslint-config-jvalue",
"version": "1.2.1",
"version": "1.3.0",
"license": "Apache-2.0",
"keywords": [
"eslint",
Expand Down
13 changes: 1 addition & 12 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ module.exports = {
rules: {
'prettier/prettier': 'warn',

'@typescript-eslint/array-type': [
'warn',
{
default: 'array-simple',
readonly: 'generic',
},
],
'@typescript-eslint/consistent-type-assertions': [
'error',
{
Expand Down Expand Up @@ -74,10 +67,10 @@ module.exports = {
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'warn',

'accessor-pairs': 'error',
'array-callback-return': 'error',
'capitalized-comments': ['warn', 'always'],
curly: 'error',
'default-case-last': 'error',
'default-param-last': 'error',
Expand All @@ -97,10 +90,6 @@ module.exports = {
],
'no-self-compare': 'error',
'no-throw-literal': 'error',

// See https://github.com/typescript-eslint/typescript-eslint/issues/1041
'no-unreachable': 'error',

'no-useless-rename': 'error',
'no-useless-return': 'error',
'import/first': 'warn',
Expand Down
13 changes: 1 addition & 12 deletions vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ module.exports = {
rules: {
'prettier/prettier': 'warn',

'@typescript-eslint/array-type': [
'warn',
{
default: 'array-simple',
readonly: 'generic',
},
],
'@typescript-eslint/consistent-type-assertions': [
'error',
{
Expand Down Expand Up @@ -72,10 +65,10 @@ module.exports = {
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'warn',

'accessor-pairs': 'error',
'array-callback-return': 'error',
'capitalized-comments': ['warn', 'always'],
curly: 'error',
'default-case-last': 'error',
'default-param-last': 'error',
Expand All @@ -95,10 +88,6 @@ module.exports = {
],
'no-self-compare': 'error',
'no-throw-literal': 'error',

// See https://github.com/typescript-eslint/typescript-eslint/issues/1041
'no-unreachable': 'error',

'no-useless-rename': 'error',
'no-useless-return': 'error',
'import/first': 'warn',
Expand Down

0 comments on commit 7d230cd

Please sign in to comment.