Soya Next
  • Introduction
  • Packages
    • soya-next
    • soya-next-cli
    • soya-next-scripts
    • soya-next-server
  • Getting Started
    • Setup
    • Directory Structure
    • Creating an App
    • Build the App for Production
  • User Guide
    • Analyzing Dependencies
    • Configure Redux Store
    • Custom Babel Configuration
    • Custom Document
    • Custom Marlint Configuration
    • Custom Routing
    • Typescript Configuration
    • Universal Environment Configuration
  • Migration Guide
    • 0.4.x to 0.5.x
  • API Reference
    • applyReducers([reducers])
    • createPage([...connectArgs])(Page, [reducers])
    • createRouter(app, [options])
    • withLocale
    • LocaleLink
  • Examples
    • Apollo
    • Authentication
    • CSS Modules
    • CSS Modules with SCSS
    • Custom Routes
    • Internationalization
    • Internationalization with Redux
    • Redirection
    • TodoMVC
  • License
Powered by GitBook
On this page
  • Override default configuration
  • Ignore files and directories
  1. User Guide

Custom Marlint Configuration

Override default configuration

To override the default configuration, add eslintConfig key to package.json like the following:

{
  "eslintConfig": {
    "plugins": [
      "security"
    ],
    "rules": {
      "jsx-quotes": [
        "error",
        "prefer-double"
      ],
      "react/jsx-no-bind": "off",
      "react/jsx-handler-names": "off"
    }
  }
}

Ignore files and directories

Create .eslintignore file or add eslintIgnore key in package.json like the following:

{
  "eslintIgnore": ["customIgnoreFile"]
}
PreviousCustom DocumentNextCustom Routing

Last updated 6 years ago

Please refer to documentation for ignoring files and directories.

this