-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Apply prettier fixes for UI * Integrate prettier into linting. Remove duplicate .prettierrc. * Common .eslintignore. Removed reduntant prettier check * Apply prettier on ui script * Correct linting * Duplicate plugin * Common plugin
- Loading branch information
Showing
91 changed files
with
1,546 additions
and
1,245 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
submodules | ||
coverage | ||
lib |
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,22 @@ | ||
{ | ||
"extends": [ | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"arrow-body-style": "off", | ||
"func-names": "off", | ||
"no-await-in-loop": "off", | ||
"no-console": "off", | ||
"no-else-return": "off", | ||
"no-param-reassign": "off", | ||
"no-plusplus": "off", | ||
"no-restricted-syntax": "off", | ||
"no-shadow": "off", | ||
"no-use-before-define": ["error", { "functions": false }], | ||
"import/no-dynamic-require": "off", | ||
"prefer-template": "off", | ||
"no-underscore-dangle": "off" | ||
} | ||
} |
File renamed without changes.
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,21 +1,11 @@ | ||
{ | ||
"plugins": ["node", "prettier"], | ||
"plugins": ["node"], | ||
"extends": [ | ||
"plugin:node/recommended", | ||
"airbnb-base", | ||
"plugin:prettier/recommended" | ||
"../.eslintrc" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"arrow-body-style": "off", | ||
"no-await-in-loop": "off", | ||
"no-console": "off", | ||
"no-else-return": "off", | ||
"no-plusplus": "off", | ||
"no-restricted-syntax": "off", | ||
"no-shadow": "off", | ||
"prefer-template": "off", | ||
"no-use-before-define": "off", | ||
"no-underscore-dangle": "off" | ||
"no-use-before-define": "off" | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,10 +1,3 @@ | ||
const { | ||
addDecoratorsLegacy, | ||
disableEsLint, | ||
override | ||
} = require("customize-cra"); | ||
const { addDecoratorsLegacy, disableEsLint, override } = require('customize-cra') | ||
|
||
module.exports = override( | ||
addDecoratorsLegacy(), | ||
disableEsLint() | ||
); | ||
module.exports = override(addDecoratorsLegacy(), disableEsLint()) |
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,17 +1,17 @@ | ||
const path = require('path'); | ||
const path = require('path') | ||
require('dotenv').config({ | ||
path: path.resolve(__dirname, '..', '.env') | ||
}); | ||
const fs = require('fs'); | ||
path: path.resolve(__dirname, '..', '.env') | ||
}) | ||
const fs = require('fs') | ||
|
||
const stylePath = path.resolve(__dirname, '..', 'src', 'assets', 'stylesheets'); | ||
const destinationFilename = 'application.css'; | ||
let filename; | ||
const stylePath = path.resolve(__dirname, '..', 'src', 'assets', 'stylesheets') | ||
const destinationFilename = 'application.css' | ||
let filename | ||
|
||
if (process.env.APP_STYLES === 'classic') { | ||
filename = 'application.classic.css' | ||
filename = 'application.classic.css' | ||
} else { | ||
filename = 'application.core.css' | ||
filename = 'application.core.css' | ||
} | ||
|
||
fs.copyFileSync(path.resolve(stylePath, filename), path.resolve(stylePath, destinationFilename)); | ||
fs.copyFileSync(path.resolve(stylePath, filename), path.resolve(stylePath, destinationFilename)) |
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.