Remove eslint and prettyer
This commit is contained in:
parent
cb1f441b1e
commit
95ed1e046d
@ -1,4 +0,0 @@
|
||||
/node_modules/
|
||||
/dist/
|
||||
/.eslintrc.js
|
||||
/CHANGELOG.md
|
16
.eslintrc.js
16
.eslintrc.js
@ -1,16 +0,0 @@
|
||||
module.exports = {
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": [
|
||||
"@typescript-eslint",
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier/@typescript-eslint",
|
||||
],
|
||||
"rules": {
|
||||
"no-extra-boolean-cast": "off",
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
},
|
||||
};
|
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
@ -9,21 +9,8 @@ on:
|
||||
|
||||
jobs:
|
||||
|
||||
test_lint:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !github.event.created }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
- run: npm ci
|
||||
- name: Making sure 'npm run lint' and 'npm run format' does not changes anything.
|
||||
run: |
|
||||
npm run lint:check
|
||||
npm run format:check
|
||||
|
||||
test_node:
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: test_lint
|
||||
strategy:
|
||||
matrix:
|
||||
node: [ '14', '13', '12' ]
|
||||
|
@ -1,5 +0,0 @@
|
||||
/node_modules/
|
||||
/dist/
|
||||
/.eslintrc.js
|
||||
/docs/
|
||||
/CHANGELOG.md
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"printWidth": 80,
|
||||
"tabWidth": 4,
|
||||
"useTabs": false,
|
||||
"semi": true,
|
||||
"singleQuote": false,
|
||||
"quoteProps": "preserve",
|
||||
"trailingComma": "all",
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "avoid"
|
||||
}
|
10663
package-lock.json
generated
10663
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
35
package.json
35
package.json
@ -10,31 +10,8 @@
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"test": "node dist/test/",
|
||||
"cdn:bundle:.js": "simplifyify dist/index.js -s keycloak_react_theming -o dist/bundle.js --debug --bundle",
|
||||
"cdn:bundle:.min.js": "terser dist/bundle.js -cmo dist/bundle.min.js",
|
||||
"cdn:bundle": "npm run cdn:bundle:.js && npm run cdn:bundle:.min.js",
|
||||
"cdn:esm": "tsc -p tsconfig.esm.json",
|
||||
"cdn": "npm run cdn:bundle && npm run cdn:esm",
|
||||
"build": "tsc && npm run cdn",
|
||||
"enable_short_import_path": "npm run build && denoify_enable_short_npm_import_path",
|
||||
"lint:check": "eslint . --ext .ts,.tsx",
|
||||
"lint": "npm run lint:check -- --fix",
|
||||
"_format": "prettier '**/*.{ts,tsx,json,md}'",
|
||||
"format": "npm run _format -- --write",
|
||||
"format:check": "npm run _format -- --list-different"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx}": [
|
||||
"eslint --fix"
|
||||
],
|
||||
"*.{ts,tsx,json,md}": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged -v"
|
||||
}
|
||||
"build": "tsc",
|
||||
"enable_short_import_path": "npm run build && denoify_enable_short_npm_import_path"
|
||||
},
|
||||
"author": "u/garronej",
|
||||
"license": "MIT",
|
||||
@ -49,17 +26,9 @@
|
||||
"homepage": "https://github.com/garronej/keycloak-react-theming",
|
||||
"devDependencies": {
|
||||
"@types/node": "^10.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
||||
"@typescript-eslint/parser": "^4.15.1",
|
||||
"denoify": "^0.6.4",
|
||||
"eslint": "^7.20.0",
|
||||
"eslint-config-prettier": "^7.2.0",
|
||||
"evt": "^1.8.11",
|
||||
"husky": "^4.3.0",
|
||||
"lint-staged": "^10.5.4",
|
||||
"prettier": "^2.2.1",
|
||||
"simplifyify": "^8.0.3",
|
||||
"terser": "^5.3.8",
|
||||
"typescript": "^4.1.5"
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": ["src/index.ts"],
|
||||
"compilerOptions": {
|
||||
"module": "es2015",
|
||||
"outDir": "dist/zz_esm/"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user