Coder Social home page Coder Social logo

brackets-jscs's Introduction

brackets-jscs

A Brackets extension that enables JSCS validation for Javascript files. For more information about JSCS see https://github.com/jscs-dev/node-jscs.

JSCS can be configured by a .jscsrc or .jscs.json file located somewhere in your project.

THIS EXTENSION IS BEING DEPRECATED

This extension is going to be deprecated soon. JSCS is being merged into ESLint. As such, there is going to be no more need it. Use the wonderful brackets-eslint extension instead.

I will still happily accept Pull Requests if you wish to fix issues, but I will no longer be actively working on it.

Requirements

Installation

  • Install the extension from the Brackets Extension registry
  • Go to Help > Show Extensions Folder
  • In the extensions folder navigate to /user/globexdesigns.brackets-jscs
  • Open a terminal to this folder and run npm install
  • Restart Brackets

Configuration

If you have disabled the default Brackets JSLint service, you will need to manually enable JSCS in your prefs file:

  • Go to Debug > Open Preferences File
  • Make sure your language.javascript.linting.prefer definition includes "JSCS" as such:
"language": {
	"javascript": {
		"linting.prefer": [
			"JSHint",
			"JSCS"
		]
	}
},

Using with JSX

JSCS (and brackets-jscs) can be used to validate JSX files. To enable this, add this line to your .jscsrc file:

"esprima": "babel-jscs"

Note about Additional Rules

The extension supports the additionalRules for JSCS however, changes/additions/removals of additional rules will require your to close and restart Brackets before the extension will respect the changes.

Building This Extension

npm install
grunt build

A new ZIP package will be created in /build/.

Credit

Based heavily on brackets-jshint and brackets-eslint.

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.