Skip to content

Commit

Permalink
feat(*): up libs
Browse files Browse the repository at this point in the history
  • Loading branch information
iLya Raylyan authored and iLya Raylyan committed Oct 18, 2021
1 parent d12ca4c commit 08d4e78
Show file tree
Hide file tree
Showing 7 changed files with 1,344 additions and 676 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn test
10 changes: 10 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"**/*.{js,jsx,ts,tsx,css}": [
"prettier-eslint --write",
"eslint"
],
"stylelint/*.js": [
"prettier-eslint --write",
"yarn test:stylelint"
]
}
5 changes: 5 additions & 0 deletions eslint/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['airbnb-typescript', 'airbnb/hooks', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
Expand All @@ -22,13 +23,17 @@ module.exports = {
'simple-import-sort',
'dirnames',
'unicorn',
'jsx-a11y',
],
settings: {
'import/resolver': {
node: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
},
},
react: {
version: 'detect',
},
},
rules: {
quotes: ['warn', 'single', { avoidEscape: true }],
Expand Down
71 changes: 28 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@
"@typescript-eslint/parser": "^4.15.2",
"eslint": "^7.7.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-airbnb-typescript": "^9.0.0",
"eslint-import-resolver-typescript": "^2.2.1",
"eslint-plugin-cypress": "2.11.1",
"eslint-config-airbnb-typescript": "^14.0.1",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-dirnames": "^1.0.3",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"eslint-plugin-simple-import-sort": "^5.0.3",
"eslint-plugin-unicorn": "^18.0.1",
"husky": "^4.2.5",
"lint-staged": "^10.2.13",
"prettier": "^2.1.1",
"prettier-eslint": "^11.0.0",
"prettier-eslint-cli": "^5.0.0",
"stylelint": "^13.6.1"
"eslint-plugin-unicorn": "^37.0.1",
"husky": "^7.0.2",
"lint-staged": "^11.2.3",
"prettier": "^2.4.1",
"prettier-eslint": "^13.0.0",
"prettier-eslint-cli": "^5.0.1",
"stylelint": "^13.13.1"
},
"devDependencies": {
"@semantic-release/changelog": "5.0.1",
Expand All @@ -49,27 +49,27 @@
"@semantic-release/release-notes-generator": "9.0.1",
"@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "4.15.2",
"eslint": "7.7.0",
"eslint-config-airbnb": "18.2.0",
"eslint-config-airbnb-typescript": "^9.0.0",
"eslint-import-resolver-typescript": "2.2.1",
"eslint-plugin-cypress": "2.11.1",
"eslint": "7.32.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-airbnb-typescript": "14.0.1",
"eslint-import-resolver-typescript": "2.5.0",
"eslint-plugin-cypress": "2.12.1",
"eslint-plugin-dirnames": "1.0.3",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"eslint-plugin-simple-import-sort": "5.0.3",
"eslint-plugin-unicorn": "18.0.1",
"husky": "4.2.5",
"lint-staged": "10.2.13",
"prettier": "2.1.1",
"prettier-eslint": "11.0.0",
"prettier-eslint-cli": "5.0.0",
"eslint-plugin-unicorn": "37.0.1",
"husky": "^7.0.0",
"lint-staged": "11.2.3",
"prettier": "2.4.1",
"prettier-eslint": "13.0.0",
"prettier-eslint-cli": "5.0.1",
"semantic-release": "17.1.1",
"stylelint": "13.6.1",
"typescript": "4.1.5"
"stylelint": "13.13.1",
"typescript": "4.4.4"
},
"scripts": {
"github-release": "conventional-github-releaser -p angular",
Expand All @@ -78,17 +78,8 @@
"test": "yarn test:eslint && yarn test:stylelint",
"test:eslint": "eslint \"./test/**/*.{ts,tsx,js,jsx}\"",
"test:stylelint": "node ./test/stylelint-test.js",
"format": "prettier-eslint --write $INIT_CWD/{eslint,stylelint,test,commitlint}/**/*.{ts,tsx,js,jsx,css}"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,css}": [
"prettier-eslint --write",
"eslint"
],
"stylelint/*.js": [
"prettier-eslint --write",
"yarn test:stylelint"
]
"format": "prettier-eslint --write $INIT_CWD/{eslint,stylelint,test,commitlint}/**/*.{ts,tsx,js,jsx,css}",
"prepare": "husky install"
},
"resolutions": {
"set-value": ">=2.0.1",
Expand All @@ -108,11 +99,5 @@
"bugs": {
"url": "https://github.com/alfa-laboratory/arui-presets-lint/issues"
},
"husky": {
"hooks": {
"pre-commit": "yarn test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"prettier": "./prettier.js"
}
1 change: 1 addition & 0 deletions test/js-input.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable no-console */
/* eslint-disable-next-line import/no-extraneous-dependencies */
import React from 'react';
import babelCore from 'stylelint';

Expand Down
Loading

0 comments on commit 08d4e78

Please sign in to comment.