Skip to content

Commit

Permalink
chore(lint): Remove eslint specific rules which were not applied (#400
Browse files Browse the repository at this point in the history
)

- Allow `calver` as `devDependencies`
- Update parser to latest version
  • Loading branch information
aifrak authored May 5, 2022
1 parent 1237ee3 commit 16d36e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
env:
browser: true
es2021: true
es2022: true

parserOptions:
ecmaVersion: 12
ecmaVersion: "latest"
sourceType: module

reportUnusedDisableDirectives: true
Expand Down Expand Up @@ -31,19 +31,7 @@ rules: {
# Core rules
no-warning-comments: error,
# Plugin rules
import/no-extraneous-dependencies:
[
error,
{ devDependencies: ["./scripts/**/*.{js,cjs}", .release-it.cjs] },
],
prefer-object-spread/prefer-object-spread: error,
switch-case/newline-between-switch-case:
[error, always, { fallthrough: never }],
}

overrides:
- files:
- ./scripts/**/*.{js,cjs}
- .release-it.js
rules:
unicorn/prefer-module: off
1 change: 1 addition & 0 deletions scripts/release-it/plugins/calver-bumper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Inspired from on https://github.com/release-it/conventional-changelog/blob/5.0.0/index.js
*/

/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import calver from 'calver';
// eslint-disable-next-line import/no-unresolved
import { Plugin } from 'release-it';
Expand Down

0 comments on commit 16d36e9

Please sign in to comment.