Skip to content

Commit

Permalink
ci: fix eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Groza authored and rolandjitsu committed Feb 6, 2022
1 parent cc4dc34 commit 17de92e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
"prettier"
],
"extends": [
// TODO: Fix this so we can use
// "okonet/node"
"eslint:recommended",
"prettier"
"plugin:prettier/recommended"
],
"rules": {
"strict": 0,
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"build:es": "cross-env BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore '**/*.spec.js'",
"start": "styleguidist server",
"styleguide": "styleguidist build",
"test": "cross-env NODE_ENV=test yarn eslint:src && jest --coverage && yarn typescript",
"test": "cross-env NODE_ENV=test yarn lint && jest --coverage && yarn typescript",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"eslint:src": "eslint .",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"commitmsg": "commitlint -e",
"prepublish": "yarn build && yarn size",
"postinstall": "husky install",
Expand All @@ -38,7 +39,7 @@
],
"lint-staged": {
"*.js": [
"eslint --fix"
"eslint . --fix"
],
"*.ts": [
"eslint ."
Expand Down
3 changes: 1 addition & 2 deletions src/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
"react-hooks"
],
"extends": [
//"okonet/react",
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
"plugin:prettier/recommended"
],
"rules": {
"react-hooks/rules-of-hooks": 2,
Expand Down
2 changes: 1 addition & 1 deletion typings/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
"plugin:prettier/recommended"
],
"settings": {
"react": {
Expand Down

0 comments on commit 17de92e

Please sign in to comment.