-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Run prettier formatting outside ESLint
Run on all the repo files except the HTML and handlebars files. Include it in the commit hooks and CI
- Loading branch information
Showing
23 changed files
with
1,075 additions
and
986 deletions.
There are no files selected for viewing
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,59 +1,46 @@ | ||
{ | ||
"extends": [ | ||
"airbnb-base", "prettier" | ||
], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"no-shadow": "off", | ||
"func-names": "off", | ||
"vars-on-top": "off", | ||
"consistent-return":"warn", | ||
"no-param-reassign":"off", | ||
"no-plusplus":"off", | ||
"strict": "off", | ||
"global-require":"off", | ||
"no-restricted-syntax":"warn", | ||
"guard-for-in":"warn", | ||
"no-underscore-dangle":"warn", | ||
"prefer-destructuring": "warn" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"public/js/*.js" | ||
], | ||
"env": { | ||
"browser": true, | ||
"jquery": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
} | ||
"extends": ["airbnb-base", "prettier"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"no-shadow": "off", | ||
"func-names": "off", | ||
"vars-on-top": "off", | ||
"consistent-return": "warn", | ||
"no-param-reassign": "off", | ||
"no-plusplus": "off", | ||
"strict": "off", | ||
"global-require": "off", | ||
"no-restricted-syntax": "warn", | ||
"guard-for-in": "warn", | ||
"no-underscore-dangle": "warn", | ||
"prefer-destructuring": "warn" | ||
}, | ||
{ | ||
"files": [ | ||
"app.js", | ||
"lib/**/*.js", | ||
"tools/**/*.js" | ||
], | ||
"plugins": ["node"], | ||
"extends": [ | ||
"plugin:node/recommended" | ||
] | ||
}, | ||
{ | ||
"files": [ | ||
"test/**/*.js" | ||
], | ||
"env": { | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"node/no-unpublished-require": "off" | ||
}, | ||
"plugins": ["node"], | ||
"extends": "plugin:node/recommended" | ||
} | ||
] | ||
"overrides": [ | ||
{ | ||
"files": ["public/js/*.js"], | ||
"env": { | ||
"browser": true, | ||
"jquery": true, | ||
"es6": true | ||
}, | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["app.js", "lib/**/*.js", "tools/**/*.js"], | ||
"plugins": ["node"], | ||
"extends": ["plugin:node/recommended"] | ||
}, | ||
{ | ||
"files": ["test/**/*.js"], | ||
"env": { | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"node/no-unpublished-require": "off" | ||
}, | ||
"plugins": ["node"], | ||
"extends": "plugin:node/recommended" | ||
} | ||
] | ||
} |
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,17 +1,17 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
time: "00:00" | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch"] | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
time: "00:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: weekly | ||
time: '00:00' | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: ['version-update:semver-patch'] | ||
- package-ecosystem: github-actions | ||
directory: '/' | ||
schedule: | ||
interval: weekly | ||
time: '00:00' | ||
open-pull-requests-limit: 10 |
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,16 +1,16 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "cspell", | ||
"pattern": [ | ||
"problemMatcher": [ | ||
{ | ||
"regexp": "^(.*):(\\d+):(\\d+)\\s+\\-\\s+(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
"owner": "cspell", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.*):(\\d+):(\\d+)\\s+\\-\\s+(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} |
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 |
---|---|---|
|
@@ -3,14 +3,14 @@ name: Lint JS | |
on: | ||
push: | ||
paths: | ||
- "**/*.js" | ||
- "jsdoc.json" | ||
- "package.json" | ||
- '**/*.js' | ||
- 'jsdoc.json' | ||
- 'package.json' | ||
pull_request: | ||
paths: | ||
- "**/*.js" | ||
- "jsdoc.json" | ||
- "package.json" | ||
- '**/*.js' | ||
- 'jsdoc.json' | ||
- 'package.json' | ||
|
||
jobs: | ||
lint: | ||
|
@@ -19,16 +19,16 @@ jobs: | |
matrix: | ||
node-version: [14.x, 16.x] | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
|
||
- run: npm ci | ||
- run: npm ci | ||
|
||
- run: npm run lint | ||
- run: npm run lint | ||
|
||
- run: npm run jsdoc | ||
- run: npm run jsdoc |
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 |
---|---|---|
|
@@ -31,3 +31,4 @@ doc/api/ | |
.vscode/ | ||
|
||
.nyc_output | ||
.eslintcache |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.html | ||
*.handlebars | ||
lib/rules/structure/display-only.js |
Oops, something went wrong.