A custom plugin designed for use within TV User Interface (TVUI) projects, providing standardized linting rules and environment settings for web and mobile development. The plugin helps ensure code quality, consistency, and best practices in large-scale TVUI projects.
- Standardized Rules: Provides a set of recommended rules that enforce best practices across TVUI projects.
- Environment Configuration: Supports linting for browser, Node.js, ES6, and Jest environments.
To install the plugin, run:
npm install eslint-plugin-tvui --save-dev
Create an .eslintrc.js
or .eslintrc.json
file in your project root if you don’t already have one. Add eslint-plugin-tvui
to your configuration.
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"plugin:tvui/recommended"
],
"plugins": [
"tvui"
],
"rules": {
// Additional custom rules can go here if needed
}
};
To lint your code using the plugin, run:
npx eslint .
Output Example:
/path/to/project/index.js
5:9 warning Unexpected console statement. Use a logging library instead no-console
13:7 warning 'unusedVar' is assigned a value but never used no-unused-vars
✖ 2 problems (0 errors, 2 warnings)
Want to contribute? Although internally focused accept PRs after review- please feel free!
Having issues? Please reach out to your contact(s) directly or file an issue in the repository.