Skip to content

Commit

Permalink
Merge branch 'release/4.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ravorona committed Apr 7, 2024
2 parents a9fa2a8 + 27e5047 commit f268043
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [4.3.0](https://github.com/ravorona/eslint-config/compare/4.2.2...4.3.0) (2024-04-07)


### Features

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

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


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ npm i --save-dev \
Set the shared configurations inside your [ESLint configuration](https://eslint.org/docs/user-guide/configuring)

```js
import config from '@ravorona/eslint'
import { configs } from '@ravorona/eslint'

export default [
config,
configs.all,
{
rules: {
"no-unused-vars": "warn"
Expand Down
19 changes: 12 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

import js from '@eslint/js'
import { configs } from '@eslint/js'

const rules = {
const jsRules = {
'block-spacing': [ 'error', 'always' ],
'camelcase': [ 'error', { 'properties': 'never' } ],
'constructor-super': 'error',
Expand Down Expand Up @@ -98,8 +98,8 @@ const rules = {
'yoda': [ 'error', 'never' ]
}

const config = [
js.configs.recommended,
const jsConfig = [
configs.recommended,
{
ignores: [
'node_modules',
Expand All @@ -118,9 +118,14 @@ const config = [
linterOptions: {
reportUnusedDisableDirectives: 'warn'
},
rules
jsRules
}
]

export { rules }
export default config
export { jsRules }

export default {
configs: {
all: jsConfig
}
}
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.3",
"version": "4.3.0",
"description": "ESLint configuration",
"main": "eslint.config.js",
"repository": "[email protected]:ravorona/eslint-config.git",
Expand Down

0 comments on commit f268043

Please sign in to comment.