-
Notifications
You must be signed in to change notification settings - Fork 8
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 #73 from devuxd/newMain
Refactoring the code to match the styles enforced by Lint
- Loading branch information
Showing
48 changed files
with
3,995 additions
and
3,566 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,9 @@ | ||
build/ | ||
node_modules/ | ||
config-overrides.js | ||
src/configureMonaco.js | ||
src/monaco-worker-loader-proxy.dev.js | ||
src/monaco-worker-loader-proxy.js | ||
src/registerServiceWorker.js | ||
src/core/generated-parser/ | ||
src/web-socket-js/ |
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,71 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jasmine": true, | ||
"es6": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"google", | ||
"plugin:import/errors", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react/jsx-runtime", | ||
"plugin:react-hooks/recommended" | ||
], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2021, | ||
"sourceType": "module", | ||
"babelOptions": { | ||
"presets": ["@babel/preset-react"] | ||
} | ||
}, | ||
"plugins": [ | ||
"react", | ||
"import", | ||
"jsx-a11y" | ||
], | ||
"rules": { | ||
"camelcase": "off", | ||
"guard-for-in": "warn", | ||
"import/default": "off", | ||
"import/export": "off", | ||
"import/namespace": "off", | ||
"indent": ["error", 4, {"SwitchCase": 1}], | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"jsx-a11y/no-noninteractive-element-interactions": "off", | ||
"jsx-a11y/no-static-element-interactions": "off", | ||
"max-len": "off", | ||
"new-cap": "off", | ||
"no-case-declarations": "off", | ||
"no-constant-condition": "off", | ||
"no-control-regex": "off", | ||
"no-invalid-this": "off", | ||
"no-prototype-builtins": "off", | ||
"no-unused-vars": ["error", {"varsIgnorePattern": "React", "argsIgnorePattern": "^_"}], | ||
"object-curly-spacing": ["error", "never"], | ||
"prefer-promise-reject-errors": "off", | ||
"quotes": ["error", "double"], | ||
"react/prop-types": "off", | ||
"react/no-unescaped-entities": "off", | ||
"require-jsdoc": "off", | ||
"valid-jsdoc": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*Constants.js", "*Constant.js", "*Config.js"], | ||
"rules": {"camelcase": "off"} | ||
}, | ||
{ | ||
"files": ["*.test.js", "src/ui/RulePad/rulePad.js"], | ||
"rules": {"max-len": "off"} | ||
} | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
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,26 @@ | ||
name: ESLint | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install ESLint | ||
run: npm install [email protected] @microsoft/[email protected] | ||
|
||
- name: Run ESLint | ||
run: npx eslint . --ext .js --config .eslintrc.json |
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,12 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/env", | ||
{ | ||
"targets": { | ||
"node": "12" | ||
} | ||
} | ||
] | ||
] | ||
} |
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,8 +1,8 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './App'; | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import App from "./App"; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<App />, div); | ||
it("renders without crashing", () => { | ||
const div = document.createElement("div"); | ||
ReactDOM.render(<App />, div); | ||
}); |
Oops, something went wrong.