-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: vite 4, example updates, shadow dom tailwind css (#53)
* chore: update vite version to 4 * chore: update @crxjs/vite-plugin to version 2.0.0-beta with esm changes * chore: update react-redux and redux-toolkit to the latest version * fix: react-redux v8 bug with webext-redux * fix: @crxjs/chrome-extension-tools vite ws bug * chore: remove commitlint and stylelint setup * refactor: src paths removing in the page url * chore: package.json scripts and ci changes, mini doc changes * chore: update eslint config and esm fixes * refactor: manifest v2 build * feat: manifest name dev prefix * chore: update deps * feat: refactored structure, popup counter, shadow dom in content * chore: disable version pinning * ci: update ci
- Loading branch information
1 parent
7fbb0a1
commit 34fb9f4
Showing
49 changed files
with
2,243 additions
and
4,635 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,34 @@ | ||
{ | ||
"env": { | ||
"es2020": true | ||
"es2020": true, | ||
"browser": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"react-app", | ||
"react-app/jest" | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"prettier" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2020, | ||
"ecmaFeatures": { "jsx": true } | ||
}, | ||
"plugins": [ | ||
"import", | ||
"simple-import-sort", | ||
"react", | ||
"react-hooks", | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"], | ||
"rules": { | ||
"no-unused-expressions": "off", | ||
"@typescript-eslint/no-unused-expressions": 2, | ||
"@typescript-eslint/triple-slash-reference": "off", | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error" | ||
"react/react-in-jsx-scope": "off", | ||
"prettier/prettier": 0 | ||
}, | ||
|
||
"overrides": [ | ||
{ | ||
"files": [".*rc.js", "*.config.js"], | ||
"files": [".*rc.js", ".*rc.cjs", "*.config.js", "*.config.cjs"], | ||
"env": { | ||
"node": true | ||
} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"], | ||
"rules": { | ||
"simple-import-sort/imports": [ | ||
"warn", | ||
{ | ||
"groups": [ | ||
// Packages `react` related packages come first. | ||
["^react", "^@?\\w"], | ||
// Internal packages. | ||
["^(@|components)(/.*|$)"], | ||
// Side effect imports. | ||
["^\\u0000"], | ||
// Parent imports. Put `..` last. | ||
["^\\.\\.(?!/?$)", "^\\.\\./?$"], | ||
// Other relative imports. Put same-folder imports and `.` last. | ||
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], | ||
// Style imports. | ||
["^.+\\.?(css)$"] | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
], | ||
"ignorePatterns": ["dist/**", "dist-firefox-v2"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"**/*": "prettier --ignore-unknown --ignore-path .gitignore --write", | ||
"**/*.{js,ts,tsx}": "eslint --fix", | ||
"**/*.{css}": "stylelint --fix" | ||
"**/*.{js,ts,tsx}": "eslint --fix" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.