feat(ags): add eslint to project
This commit is contained in:
parent
974a34fecb
commit
0b7cf3b813
4 changed files with 87 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
*.egg-info
|
||||
*.temp
|
||||
*node_modules/
|
||||
*package-lock.json
|
||||
|
|
|
@ -55,6 +55,7 @@ in
|
|||
settings = {
|
||||
"colors.enable" = true;
|
||||
"coc.preferences.formatOnType" = true;
|
||||
"eslint.format.enable" = true;
|
||||
"Lua.misc.parameters" = [
|
||||
"--metapath"
|
||||
"~/.cache/sumneko_lua/meta"
|
||||
|
@ -96,6 +97,7 @@ in
|
|||
coc-toml
|
||||
coc-markdownlint
|
||||
coc-tsserver
|
||||
coc-eslint
|
||||
neodev-nvim
|
||||
|
||||
coc-fzf
|
||||
|
|
76
hosts/wim/config/ags/.eslintrc.yml
Normal file
76
hosts/wim/config/ags/.eslintrc.yml
Normal file
|
@ -0,0 +1,76 @@
|
|||
env:
|
||||
es2021: true
|
||||
extends: eslint:recommended
|
||||
overrides: []
|
||||
parserOptions:
|
||||
ecmaVersion: latest
|
||||
sourceType: 'module'
|
||||
rules:
|
||||
arrow-parens:
|
||||
- error
|
||||
- as-needed
|
||||
comma-dangle:
|
||||
- error
|
||||
- always-multiline
|
||||
comma-spacing:
|
||||
- error
|
||||
- before: false
|
||||
after: true
|
||||
comma-style:
|
||||
- error
|
||||
- last
|
||||
curly:
|
||||
- error
|
||||
- multi-or-nest
|
||||
- consistent
|
||||
dot-location:
|
||||
- error
|
||||
- property
|
||||
eol-last: error
|
||||
indent:
|
||||
- error
|
||||
- 4
|
||||
- SwitchCase: 1
|
||||
keyword-spacing:
|
||||
- error
|
||||
- before: true
|
||||
lines-between-class-members:
|
||||
- error
|
||||
- always
|
||||
- exceptAfterSingleLine: true
|
||||
padded-blocks:
|
||||
- error
|
||||
- never
|
||||
- allowSingleLineBlocks: false
|
||||
prefer-const: error
|
||||
quotes:
|
||||
- error
|
||||
- single
|
||||
- avoidEscape: true
|
||||
semi:
|
||||
- error
|
||||
- always
|
||||
nonblock-statement-body-position:
|
||||
- error
|
||||
- below
|
||||
no-trailing-spaces:
|
||||
- error
|
||||
array-bracket-spacing:
|
||||
- error
|
||||
- never
|
||||
key-spacing:
|
||||
- error
|
||||
- beforeColon: false
|
||||
afterColon: true
|
||||
object-curly-spacing:
|
||||
- error
|
||||
- always
|
||||
no-useless-escape:
|
||||
- off
|
||||
globals:
|
||||
ags: readonly
|
||||
ARGV: readonly
|
||||
imports: readonly
|
||||
print: readonly
|
||||
console: readonly
|
||||
logError: readonly
|
7
hosts/wim/config/ags/package.json
Normal file
7
hosts/wim/config/ags/package.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"@girs/gtk-3.0": "^3.24.39-3.2.2",
|
||||
"eslint": "^8.52.0",
|
||||
"stylelint-config-standard-scss": "^11.0.0"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue