Skip to content

Commit

Permalink
Merge branch 'release/4.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
ravorona committed Apr 7, 2024
2 parents 4c89686 + d84611b commit a9fa2a8
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 120 deletions.
18 changes: 0 additions & 18 deletions .editorconfig

This file was deleted.

3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.editorconfig
.prettierrc
.github
Makefile
19 changes: 13 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
## [4.2.1](https://github.com/ravorona/eslint-config/compare/4.1.2...4.2.1) (2024-04-07)
## [4.2.3](https://github.com/ravorona/eslint-config/compare/4.2.2...4.2.3) (2024-04-07)


### Features

* Create rules export ([6e9b85e](https://github.com/ravorona/eslint-config/commit/6e9b85e114062f76926f6e8638dea88756e5aed8))

## [4.2.2](https://github.com/ravorona/eslint-config/compare/4.2.1...4.2.2) (2024-04-07)

### Features

* Documentation update

## [4.2.1](https://github.com/ravorona/eslint-config/compare/4.1.2...4.2.1) (2024-04-07)

### Features

Expand All @@ -9,36 +21,31 @@

## [4.2.0](https://github.com/ravorona/eslint-config/compare/4.1.2...4.2.0) (2024-04-07)


### Features

* Eslint 9 ([8665a55](https://github.com/ravorona/eslint-config/commit/8665a5527af4aeb9ce5ced966ef20e2938607c52))
* Use latest ecmaVersion ([ba2eeab](https://github.com/ravorona/eslint-config/commit/ba2eeab11fe9f8ff0c00ab6522f013d326ea1240))

### [4.1.2](https://github.com/ravorona/eslint-config/compare/4.1.1...4.1.2) (2022-11-14)


### Bug Fixes

* Rules error ([8b282ea](https://github.com/ravorona/eslint-config/commit/8b282ea672469bfdb7d36ba6a48be75554b8fba7))

### [4.1.1](https://github.com/ravorona/eslint-config/compare/4.1.0...4.1.1) (2022-11-14)


### Features

* object-curly-newline rule use consistent ([3f05479](https://github.com/ravorona/eslint-config/commit/3f05479a08fb6f6a39352a944d1737ceed9fecb9))

## [4.1.0](https://github.com/ravorona/eslint-config/compare/4.0.5...4.1.0) (2022-11-14)


### Features

* Remove template-curly-spacing ([0ad3aa2](https://github.com/ravorona/eslint-config/commit/0ad3aa21eb06c60c5b8e6b817af91e8a4e723d3f))

### [4.0.5](https://github.com/ravorona/eslint-config/compare/4.0.4...4.0.5) (2022-11-14)


### Features

* Eslint 8.2.6 as peer dependencies ([da8d5f3](https://github.com/ravorona/eslint-config/commit/da8d5f3773ebd25acd7bf943eab9dba04e05fc06))
16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

159 changes: 82 additions & 77 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,84 @@

import js from '@eslint/js'

export default [
const rules = {
'block-spacing': [ 'error', 'always' ],
'camelcase': [ 'error', { 'properties': 'never' } ],
'constructor-super': 'error',
'dot-location': [ 'error', 'property' ],
'eqeqeq': [ 'error', 'always', { 'null': 'ignore' } ],
'handle-callback-err': [ 'error', '^(err|error)$' ],
'new-cap': [ 'error', {
'newIsCap': true,
'capIsNew': false
} ],
'new-parens': 'error',
'newline-before-return': 'error',
'no-array-constructor': 'error',
'no-caller': 'error',
'no-class-assign': 'error',
'no-cond-assign': 'error',
'no-const-assign': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-empty-character-class': 'error',
'no-empty-pattern': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-implied-eval': 'error',
'no-irregular-whitespace': 'error',
'no-iterator': 'error',
'no-magic-numbers': [ 'error', {
'ignoreArrayIndexes': true,
'ignoreDefaultValues': true
} ],
'no-new-object': 'error',
'no-new-require': 'error',
'no-new-wrappers': 'error',
'no-param-reassign': 'error',
'no-proto': 'error',
'no-self-compare': 'warn',
'no-sequences': 'error',
'no-template-curly-in-string': 'warn',
'no-throw-literal': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-unmodified-loop-condition': 'error',
'no-unneeded-ternary': [ 'error', { 'defaultAssignment': false } ],
'no-unreachable': 'error',
'no-unused-vars': [ 'error', {
'vars': 'all',
'args': 'after-used',
'ignoreRestSiblings': false
} ],
'no-useless-call': 'error',
'no-useless-computed-key': 'error',
'no-useless-constructor': 'warn',
'no-useless-rename': 'error',
'no-var': 'error',
'object-curly-newline': [ 'error', { 'consistent': true } ],
'object-property-newline': [ 'error', { 'allowAllPropertiesOnSameLine': false } ],
'one-var': [ 'error', { 'initialized': 'never' } ],
'one-var-declaration-per-line': [ 'error', 'always' ],
'spaced-comment': [ 'error', 'always', {
'line': { 'markers': [ '*package', '!', ',' ] },
'block': {
'balanced': true,
'markers': [ '*package', '!', ',' ],
'exceptions': [ '*' ]
}
} ],
'unicode-bom': [ 'error', 'never' ],
'use-isnan': 'error',
'valid-typeof': 'error',
'wrap-iife': [ 'error', 'any', { 'functionPrototypeMethods': true } ],
'yield-star-spacing': [ 'error', 'both' ],
'yoda': [ 'error', 'never' ]
}

const config = [
js.configs.recommended,
{
ignores: [
Expand All @@ -41,81 +118,9 @@ export default [
linterOptions: {
reportUnusedDisableDirectives: 'warn'
},
rules: {
'block-spacing': [ 'error', 'always' ],
'camelcase': [ 'error', { 'properties': 'never' } ],
'constructor-super': 'error',
'dot-location': [ 'error', 'property' ],
'eqeqeq': [ 'error', 'always', { 'null': 'ignore' } ],
'handle-callback-err': [ 'error', '^(err|error)$' ],
'new-cap': [ 'error', {
'newIsCap': true,
'capIsNew': false
} ],
'new-parens': 'error',
'newline-before-return': 'error',
'no-array-constructor': 'error',
'no-caller': 'error',
'no-class-assign': 'error',
'no-cond-assign': 'error',
'no-const-assign': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-empty-character-class': 'error',
'no-empty-pattern': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-implied-eval': 'error',
'no-irregular-whitespace': 'error',
'no-iterator': 'error',
'no-magic-numbers': [ 'error', {
'ignoreArrayIndexes': true,
'ignoreDefaultValues': true
} ],
'no-new-object': 'error',
'no-new-require': 'error',
'no-new-wrappers': 'error',
'no-param-reassign': 'error',
'no-proto': 'error',
'no-self-compare': 'warn',
'no-sequences': 'error',
'no-template-curly-in-string': 'warn',
'no-throw-literal': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-unmodified-loop-condition': 'error',
'no-unneeded-ternary': [ 'error', { 'defaultAssignment': false } ],
'no-unreachable': 'error',
'no-unused-vars': [ 'error', {
'vars': 'all',
'args': 'after-used',
'ignoreRestSiblings': false
} ],
'no-useless-call': 'error',
'no-useless-computed-key': 'error',
'no-useless-constructor': 'warn',
'no-useless-rename': 'error',
'no-var': 'error',
'object-curly-newline': [ 'error', { 'consistent': true } ],
'object-property-newline': [ 'error', { 'allowAllPropertiesOnSameLine': false } ],
'one-var': [ 'error', { 'initialized': 'never' } ],
'one-var-declaration-per-line': [ 'error', 'always' ],
'spaced-comment': [ 'error', 'always', {
'line': { 'markers': [ '*package', '!', ',' ] },
'block': {
'balanced': true,
'markers': [ '*package', '!', ',' ],
'exceptions': [ '*' ]
}
} ],
'unicode-bom': [ 'error', 'never' ],
'use-isnan': 'error',
'valid-typeof': 'error',
'wrap-iife': [ 'error', 'any', { 'functionPrototypeMethods': true } ],
'yield-star-spacing': [ 'error', 'both' ],
'yoda': [ 'error', 'never' ]
}
rules
}
]

export { rules }
export default config
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ravorona/eslint-config",
"version": "4.2.2",
"version": "4.2.3",
"description": "ESLint configuration",
"main": "eslint.config.js",
"repository": "[email protected]:ravorona/eslint-config.git",
Expand Down

0 comments on commit a9fa2a8

Please sign in to comment.