Implement import function

* Add ESLint rules
* Change code style : using semi-columns
* Change error notification : using pre + wrap to be able to add
  newlines
* Bump version to 1.4.0
This commit is contained in:
Corentin 2024-03-04 14:07:46 +09:00
commit c20a6397fc
11 changed files with 433 additions and 336 deletions

28
.eslintrc.json Normal file
View file

@ -0,0 +1,28 @@
{
"env": {
"webextensions": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended"
],
"globals": {
"process": "readonly"
},
"ignorePatterns": ["node_modules"],
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": ["@stylistic/js"],
"rules": {
"no-console": ["error", {"allow": ["warn", "error"]}],
"no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
"@stylistic/js/indent": ["error", "tab"],
"@stylistic/js/semi": ["error", "always"]
}
}