-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from ONLYOFFICE/refactor/eslint
Refactor/eslint
- Loading branch information
Showing
18 changed files
with
20,652 additions
and
9,320 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "@ownclouders", | ||
"rules": { | ||
"array-bracket-newline": ["error", "consistent"], | ||
"multiline-ternary": ["error", "always-multiline"], | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"object-shorthand": ["error", "always"], | ||
"eqeqeq": ["error", "smart"] | ||
} | ||
} |
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,36 @@ | ||
name: ESLint | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [master, develop, refactor/eslint] | ||
pull_request: | ||
branches: [master, develop, refactor/eslint] | ||
|
||
env: | ||
NODE_VERSION: 20 | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./js | ||
steps: | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Code Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Code Linting | ||
run: npx eslint ./**/*.js | ||
|
||
- name: CSS Linting | ||
run: npx stylelint ../css/*.css |
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,13 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-sass-guidelines"], | ||
"rules": { | ||
"scss/at-extend-no-missing-placeholder": null, | ||
"max-nesting-depth": null, | ||
"selector-class-pattern": null, | ||
"selector-max-compound-selectors": null, | ||
"selector-max-id": null, | ||
"selector-no-qualifying-type": null, | ||
"property-no-vendor-prefix": null, | ||
"string-quotes": "double" | ||
} | ||
} |
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
Oops, something went wrong.