Giter VIP home page Giter VIP logo

dotfiles's Introduction

Dot Files

Editor, eslint, prettier, postcss, git, stylelint config files.

Base

  • .editorconfig : default
  • .gitattributes : default
  • .gitignore : default
  • .stylelintrc.js : default
  • .prettierrc.js : default
  • .eslintrc.js : JavaScript Standard Style

Edits

Changes from base structure.

.editorconfig

No edit.

.gitattributes

No edit.

.gitignore

Sage, laravel, sails.js, yarn, npm related files added.

.stylelintrc.js

No edit.

.prettierrc

rcVerbose option removed. Latest version with this option causing error. Below options change to make it work with eslint configuration.

printWidth: 100 singleQuote: true trailingComma: 'es5' bracketSpacing: true parser: 'babel' requirePragma: false proseWrap: 'preserve' arrowParens: 'avoid'

.eslintrc.js

Require semicolons instead of ASI (semi) The professional and modern thing to do is not to omit optional tokens, but to always use them, since explicit > implicit.

semi: ['error', 'always'],

Require trailing commas for arrays and object when multiline. This changed coz makes copy paste or changing places mcuh easier.

"comma-dangle": [
"error",
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}
],

Disallow a space before function parenthesis except asyncArrow. This changed coz prettier do not have option.

"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],

Beware of this eslint rules

env

env: {
  es6: true,
  node: true,
},

globals

globals: {
  document: false,
  navigator: false,
  window: false,
},

Beware of this gitignore rules

package-lock.json yarn.lock

Post CSS Sorting

Post CSS Sorting settings located at .postcss.config.json file. Post CSS will not look for this file. This should be added to ide settings. Simple copy paste will be enough.

IDE Addons sublime vscode

Related Links

dotfiles's People

Contributors

erkanerbay avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

tadakun8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.