ESLint plugin for Ionic with recommended configurations.
Last updated a year ago by dwieeb .
MIT · Original npm · Tarball · package.json
$ cnpm install @ionic/eslint-plugin 
SYNC missed versions from official npm registry.


Common ESLint rules & preferences for Ionic.



npm i -D eslint @ionic/eslint-plugin


Create .eslintrc.js, or otherwise configure ESLint to use the Ionic ESLint Plugin.

  • You must manually configure env to setup your ESLint environment.
  • You must manually configure parserOptions to point to your tsconfig.json and configure any additional options.
module.exports = {
  env: {
    browser: true,
    node: true,
    es6: true,
  parserOptions: {
    project: './tsconfig.json',
    ecmaFeatures: {
      jsx: true,
  plugins: ['@ionic'],
  extends: ['plugin:@ionic/recommended'], // or use `plugin:@ionic/strict`
  rules: {
    // additional rule configuration


  • plugin:@ionic/crucial: Builds on top of @typescript-eslint/recommended and eslint:recommended.
  • plugin:@ionic/recommended: Recommended set of rules.
  • plugin:@ionic/strict: Stricter set of rules for very consistent code. Good for new projects.

Current Tags

  • 0.0.1                                ...           latest (a year ago)

1 Versions

  • 0.0.1                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |