Created
March 18, 2024 16:59
-
-
Save tpluscode/149377e20f27a47ae0e02fdd453f10a7 to your computer and use it in GitHub Desktop.
lit/no-classfield-shadowing
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
Show hidden characters
{ | |
"extends": [ | |
"@open-wc/eslint-config", | |
"@tpluscode" | |
], | |
"env": { | |
"browser": true | |
}, | |
"parserOptions": { | |
"project": "./tsconfig.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
import { LitElement } from 'lit' | |
import { property } from 'lit/decorators.js' | |
class MyElement extends LitElement { | |
@property({ type: String }) | |
editors!: 'string' | |
} |
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
{ | |
"name": "no-classfild-shadowing", | |
"dependencies": { | |
"@open-wc/eslint-config": "^12.0.3", | |
"@tpluscode/eslint-config": "^0.4.5", | |
"@typescript-eslint/eslint-plugin": "^7.1.0", | |
"@typescript-eslint/parser": "^7.1.0", | |
"eslint": "^8.57.0", | |
"lit": "^2", | |
"ts-lit-plugin": "^1.2.1", | |
"typescript": "^5.3.3" | |
} | |
} |
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
{ | |
"compilerOptions": { | |
"target": "es2019", | |
"module": "ESNext", | |
"baseUrl": "./", | |
"forceConsistentCasingInFileNames": true, | |
"moduleResolution": "Node", | |
"declaration": true, | |
"declarationMap": true, | |
"sourceMap": true, | |
"experimentalDecorators": true, | |
"allowSyntheticDefaultImports": true, | |
"esModuleInterop": true, | |
"strict": true, | |
"strictNullChecks": true, | |
"noImplicitAny": true, | |
"typeRoots": [ | |
"node_modules/@types", | |
"types" | |
], | |
"skipLibCheck": true, | |
"resolveJsonModule": true, | |
"plugins": [ | |
{ | |
"name": "ts-lit-plugin" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment