673e35a88d
- Add `/extras` to the precommit hooks (lint, prettier). - Remove `preinstall` since these modules don't exist anymore. - Fix missing brace if one single-line if-statement.
11 lines
525 B
JSON
11 lines
525 B
JSON
{
|
|
"linters": {
|
|
"ui/**/*.{js,jsx,scss,json}": ["prettier --write", "git add"],
|
|
"extras/**/*.{js,jsx,scss,json}": ["prettier --write", "git add"],
|
|
"web/**/*.{js,jsx,scss,json}": ["prettier --write", "git add"],
|
|
"ui/**/*.{js,jsx}": ["eslint", "flow focus-check --color always", "git add"],
|
|
"extras/**/*.{js,jsx}": ["eslint", "flow focus-check --color always", "git add"],
|
|
"web/**/*.{js,jsx}": ["eslint", "git add"]
|
|
},
|
|
"ignore": ["node_modules", "web/dist/**/*", "dist/**/*", "package-lock.json"]
|
|
}
|