tsconfig.json

Identifies the root directory of the Typescript project. The root file used to compile the project and the compile options are specified in this file. When an input file is specified on the TSC command line, the tsconfig.json file is ignored.

.babelrc

Babel is a toolchain for converting ECMAScript 2015+ code to backward compatible JavaScript code in older browsers or environments. None of its API options accept callback methods, and.babelrc files are serialized to JSON5.

.browserslistrc

This item is invalid on its own and needs to be used with: Autoprefixer, Babel, postcss-preset -env, etc. Configuring Browserslist in scaffolding, for example, is used by @babel/preset-env and Autoprefixer to determine which JavaScript features need to be translated and which CSS browser prefixes need to be added.

.commitlintrc.js

Code submission specification and specification verification, elegant submission, easy team collaboration and quick problem locating.

.editorconfig

Different developers, different editors, have different coding styles, and etorConfig can be used as a tool to work with team developers to standardize code styles and styles. . Editorconfig is the default configuration file.

.eslintignore

Specifies that ESLint ignores files and directories and is a plain text file.

.eslintrc.js

If placed in the project root directory, it will be applied to the entire project; If the subdirectory also contains.eslintrc files, the subdirectory will ignore the configuration files in the root directory and apply the configuration files in that directory. This makes it easy to apply different rules to code in different environments.

.npmrc

Configure the NPM source. Such as

sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ electron_mirror=https://npm.taobao.org/mirrors/electron/ chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver  operadriver_cdnurl=https://npm.taobao.org/mirrors/operadriver selenium_cdnurl=https://npm.taobao.org/mirrors/selenium node_inspector_cdnurl=https://npm.taobao.org/mirrors/node-inspector fsevents_binary_host_mirror=http://npm.taobao.org/mirrors/fsevents/Copy the code

postcss.config.js

For PostCSS. Postcss is to help us post-process the CSS. The CSS has been compiled. After the stylus-Loader compiles the CSS, postCSS is used to optimize the CSS through a series of components, such as adding the CSS prefix through autoprefixer

  module.exports = {
    plugins: {
    autoprefixer: {}
  }
Copy the code

prettier.config.js

The project formats the configuration file

.prettierignore

If there are files that you do not want to format, you can ignore formatting. The file. Prettierignore is created in the root directory of the project