Daniel Gato
01/04/2022, 11:52 AM.vscode/settings.json
in the root folder with this:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript"],
}
But this is still not converting ' to ” (or the other way) and my tabs are still not formatted. What am I missing here?Devin
01/04/2022, 12:27 PMDevin
01/04/2022, 12:28 PMDaniel Gato
01/04/2022, 1:32 PM.eslintrc.yml
2. added this packages: eslint
, eslint-config-airbnb-base
,eslint-plugin-import
, and babel-eslint
(the last one is to avoid eslint complaining about class variables)
config file:
env:
es2021: true
node: true
browser: true
parserOptions:
ecmaVersion: 12
sourceType: module
rules:
no-new: off
import/prefer-default-export: off
parser: babel-eslint
extends:
- airbnb-base
thdxr
01/04/2022, 1:46 PMthdxr
01/04/2022, 1:47 PMDaniel Gato
01/04/2022, 2:30 PMenv:
es2021: true
node: true
browser: true
parserOptions:
ecmaVersion: 12
sourceType: module
rules:
no-new: off
import/prefer-default-export: off
extends:
- airbnb-base
Daniel Gato
01/04/2022, 2:30 PMthdxr
01/10/2022, 5:47 PMDaniel Gato
01/10/2022, 5:50 PMeslint-config-airbnb-base
and`eslint-plugin-import`Daniel Gato
01/13/2022, 9:49 PM{
"name": "...",
"private": true,
"eslintConfig": {
"extends": [
"serverless-stack",
"airbnb-base",
"prettier"
],
"plugins": [
"prettier"
],
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.5.1"
},
"dependencies": {
"@aws-cdk/assert": "1.138.0",
"@aws-cdk/aws-iam": "1.138.0",
"@aws-cdk/aws-lambda": "1.138.0",
"@aws-cdk/aws-logs": "1.138.0",
"@aws-cdk/aws-s3": "1.138.0",
"@aws-cdk/core": "1.138.0",
"@serverless-stack/cli": "0.57.0",
"@serverless-stack/resources": "0.57.0",
"aws-sdk": "^2.1049.0",
}
}
But my files don’t have any restrictions such as line length (that I know Airbnb guidelines have)
Is there something that is obviously wrong?Frank
Daniel Gato
01/26/2022, 5:43 PMDaniel Gato
01/26/2022, 5:43 PMDaniel Gato
02/09/2022, 1:14 PM