my-orders-tickets-widget 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/.editorconfig +0 -10
- package/.env +0 -2
- package/.env.template +0 -0
- package/.eslintrc.json +0 -42
- package/.github/workflows/eslint.yml +0 -15
- package/.husky/pre-commit +0 -4
- package/babel.config.json +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my-orders-tickets-widget",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "smarcet <smarcet@gmail.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "jest",
|
|
13
13
|
"prepare": "husky",
|
|
14
14
|
"lint": "eslint src",
|
|
15
|
-
"precommit": "npx lint-staged --
|
|
15
|
+
"precommit": "npx lint-staged --verbose"
|
|
16
16
|
},
|
|
17
17
|
"lint-staged": {
|
|
18
18
|
"*.{js,jsx}": "eslint --fix",
|
package/.editorconfig
DELETED
package/.env
DELETED
package/.env.template
DELETED
|
File without changes
|
package/.eslintrc.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
|
|
7
|
-
"parser": "@babel/eslint-parser",
|
|
8
|
-
"parserOptions": {
|
|
9
|
-
"ecmaFeatures": {
|
|
10
|
-
"jsx": true
|
|
11
|
-
},
|
|
12
|
-
"ecmaVersion": 12,
|
|
13
|
-
"sourceType": "module"
|
|
14
|
-
},
|
|
15
|
-
"plugins": ["react"],
|
|
16
|
-
"rules": {
|
|
17
|
-
"quotes": ["error", "double"],
|
|
18
|
-
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
|
|
19
|
-
"import/no-extraneous-dependencies": "warn",
|
|
20
|
-
"react/no-unused-class-component-methods": "warn",
|
|
21
|
-
"class-methods-use-this": "warn",
|
|
22
|
-
"import/no-unresolved": "warn",
|
|
23
|
-
"no-underscore-dangle": "warn",
|
|
24
|
-
"camelcase": "warn",
|
|
25
|
-
"react/forbid-prop-types": "warn",
|
|
26
|
-
"no-magic-numbers": [
|
|
27
|
-
"error",
|
|
28
|
-
{ "ignoreArrayIndexes": true, "ignore": [0] }
|
|
29
|
-
],
|
|
30
|
-
"import/no-dynamic-require": "warn",
|
|
31
|
-
"no-shadow": "warn",
|
|
32
|
-
"global-require": "warn",
|
|
33
|
-
"no-param-reassign": "warn",
|
|
34
|
-
"react/require-default-props": "warn",
|
|
35
|
-
"react/prop-types": "warn",
|
|
36
|
-
"react/jsx-no-useless-fragment": "warn",
|
|
37
|
-
"import/prefer-default-export": "warn",
|
|
38
|
-
"no-plusplus": "off",
|
|
39
|
-
"no-continue": "off"
|
|
40
|
-
},
|
|
41
|
-
"ignorePatterns": ["src/__mocks__"]
|
|
42
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
name: es-lint
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
jobs:
|
|
5
|
-
build:
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
steps:
|
|
8
|
-
- uses: actions/checkout@v3
|
|
9
|
-
with:
|
|
10
|
-
fetch-depth: 0
|
|
11
|
-
- uses: actions/setup-node@v3
|
|
12
|
-
with:
|
|
13
|
-
node-version: 18
|
|
14
|
-
- run: yarn install
|
|
15
|
-
- run: npx lint-staged --diff=origin/main --verbose
|
package/.husky/pre-commit
DELETED